Thanks so much for that, I should be able to modify that for other uses.
Thanks so much for all your help, foxidrive.
Search found 5 matches
- 22 Jan 2013 06:41
- Forum: DOS Batch Forum
- Topic: Find Word After A String
- Replies: 8
- Views: 3482
- 22 Jan 2013 06:04
- Forum: DOS Batch Forum
- Topic: Find Word After A String
- Replies: 8
- Views: 3482
Re: Find Word After A String
Essentially yes but I don't want to change the logon script, just split it later plus this could be used for other things.
What I really want is a script that will display the word which the user nay not know, after or before a sentence or phrase that they do know that would be in the script.
What I really want is a script that will display the word which the user nay not know, after or before a sentence or phrase that they do know that would be in the script.
- 22 Jan 2013 05:39
- Forum: DOS Batch Forum
- Topic: Find Word After A String
- Replies: 8
- Views: 3482
Re: Find Word After A String
Sorry, I should clarify. What I want to do is get the last user logged onto a machine and add that to a text file and name it that username.
The layout of the logs on the server is just like that example that I included in my previous post.
The layout of the logs on the server is just like that example that I included in my previous post.
- 22 Jan 2013 03:10
- Forum: DOS Batch Forum
- Topic: Find Word After A String
- Replies: 8
- Views: 3482
Re: Find Word After A String
Sure, here's an example:
Logged off user1 at dd-mm-yy at xx:xx:xx (hours, minutes, seconds)
Logged on user2
Logged off user2
Logged on user3
In all the above examples the date and time is included.
Logged off user1 at dd-mm-yy at xx:xx:xx (hours, minutes, seconds)
Logged on user2
Logged off user2
Logged on user3
In all the above examples the date and time is included.
- 21 Jan 2013 22:13
- Forum: DOS Batch Forum
- Topic: Find Word After A String
- Replies: 8
- Views: 3482
Find Word After A String
Hi all, I was wondering if it's possible to create a script to find a word at the end of a sentence or in the middle of a sentence that could be random. The reason I'm trying to do this is because I have a logon script that writes when a user logs on and off through the %username% variable. I want t...