It works!!! Thanks Bishop. Your help is very much appreciated. Kuldeep On Jul 3, 3:50 pm, Bishop <Bis...@discussions.microsoft.com> wrote: I find the problem. You use blanks in the file "tmp.txt" here is the solution with "Trim": Const ForReading = 1 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile("c:\tmp.txt", ForReading
HI, Thanks for the reply. Now the Error message is gone. However the files are not deleted. Kuldeep On Jul 3, 2:12 pm, Bishop <Bis...@discussions.microsoft.com> wrote: Sorry, my fault. try this: Const ForReading = 1 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile("c:\tmp.txt", ForReading) Do Until objTextFile.AtEndOfStream
"Anthony Jones" <Ant@yadayadayada.com> wrote in message news:uROOVgeZIHA.5980@TK2MSFTNGP04.phx.gbl... "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message news:e3fpzXeZIHA.4180@TK2MSFTNGP06.phx.gbl... "Deephazz" <Deephazz@discussions.microsoft.com> wrote in message news:BE7291DF-2179-4287-A924-FDE1CED20620@microsoft.com... Hello, I'm very new to VBScript and I'd