
Please Help: Why am I now getting this error
Please Help. I have this script that was working and not isn't for some
reason (I don't know why but I have been able to get it to work on
ocassion). Basically the script takes all pictures in a folder, edits them
and then moves them. But I get an error as followed:
Line 6
Char: 9 (that corresponds to the char. starting at shell.run . . .
The error is: The System Cannot Find the File Specified
Code 80070002
Source: (null)
There are files in that folder and the script was working fine before so I
don't understand it. Any thoughts Please
set fso=createobject("scripting.filesystemobject")
set fd=fso.getfolder("I:\pictures1")
set shell=createobject("wscript.shell")
for each f in fd.files
shell.run "I:\pictures1\" & f.name,, false
wscript.sleep 200
shell.sendkeys "^r", 1
wscript.sleep 200
shell.sendkeys "^q", 1
wscript.sleep 200
shell.sendkeys "%", 1
wscript.sleep 200
shell.sendkeys "I", 1
wscript.sleep 200
shell.sendkeys "z", 1
wscript.sleep 200
shell.sendkeys "150", 1
wscript.sleep 200
shell.sendkeys "{enter}", 1
wscript.sleep 200
shell.sendkeys "^s", 1
wscript.sleep 200
shell.sendkeys "%", 1
wscript.sleep 200
shell.sendkeys "F", 1
wscript.sleep 200
shell.sendkeys "x", 1
wscript.sleep 1000
fso.movefile "I:\pictures1\" & f.name, "I:\pictures\edited\" &
f.name
next