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!
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.