Login | |
|
 |
RE: Mid Function - 7/23/2007 10:04:51 PM
|
|
 |
|
| |
ginolard
Posts: 1082
Score: 21
Joined: 8/10/2005
Status: offline
|
The error message says it all. The Do Loop cannot find an object to do anything with. You need to define the InputFile object using Set InputFile=objFSO.OpenTextFile(objFile,1) However, bear in mind that this will ONLY work for text files. Your script will causes binary files to attempt to be read as well and that will generate an error.
_____________________________
Author of ManagePC - http://managepc.net AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm
|
|
| |
|
|
|
|
|