Can't seem to get around this error. Here is my code
Backup.txt has 3 lines
c:\downloads\*.*
c:\documents\*.*
f:\logs\*.*
****************************************
Set fs = CreateObject("Scripting.FileSystemObject"
Set f = fs.OpenTextFile("c:\test\backup.txt", 1)
x = 1
Do While f.AtEndOfStream = False
sCmd = "c:\test\PKZIP.exe -P -r c:\test\" & x & ".zip " & f.ReadLine
WshShell.Run sCmd, 1, True
x = x + 1
Loop
******************************************
Any ideas?
Backup.txt has 3 lines
c:\downloads\*.*
c:\documents\*.*
f:\logs\*.*
****************************************
Set fs = CreateObject("Scripting.FileSystemObject"
Set f = fs.OpenTextFile("c:\test\backup.txt", 1)
x = 1
Do While f.AtEndOfStream = False
sCmd = "c:\test\PKZIP.exe -P -r c:\test\" & x & ".zip " & f.ReadLine
WshShell.Run sCmd, 1, True
x = x + 1
Loop
******************************************
Any ideas?