| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Greetings,
Here's my trouble. I have a log file from a program that creates several users with this format: 'Begins log file User creation log. 'When a user is created succesfully the log is filled like this: Creating user Myuser..... Creation of user Myuser succeded. Created Myuser's home directory. Created Myuser's personal folder. 'When the creation of an user fails it writes the following on 'the same file: Creating user Myuser... Creation of user Myuser Failed. Could not create Myuser's home directory. Could not create Myuser's personal folder. Creation failed. Reason:Myuser is not a valid user name 'Ends log file. Since both the success and failed creation log is on the same log file I need (using WSH) to read when the line says Failed and read the next 3 or 4 lines below, so then I can write that information on another file(wich I know how to do it). I hope you understand me. Thank you very much. ![]()
__________________
"It is impossible to make anything foolproof because fools are so ingenious". Murphy.
|
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Help with WSH |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|