Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old June 2nd, 2004, 12:58 PM
grendon grendon is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Somewhere in Time
Posts: 57 grendon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Unhappy Help with WSH

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.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Help with WSH


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway