Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Read File

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,61743
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Read File
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Read File - 6/23/2008 5:28:37 AM   
  jcarver_14

 

Posts: 30
Score: 0
Joined: 6/4/2008
From: Cincinnati
Status: offline

      

Hey this will allow u to read a file.  I use it to read a list of computer names

How to use it:

Create a folder and place this script into it.  Open it for editing.  Replace %file% in line 3 with the name of the file you want it to read.  Be sure to inclued the extention.  Right now the script is set up to echo each line in a message box (line 6) but u can use the variable strNextLine that is set in line 5 to place anywere in your script.  For example "\\" & strNextLine & "\C$\folder\.... if you have computer names in your txt file it will input the computer name into the path.
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Read File Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts