Problems with Scripting Run command
Posted: 27 Jan 2015 21:34
I don't know what it is, but I seem to have the hardest time with the Run command for scripting. I have the 'setting' command in there to disable background processing, but yet it seems like I still need to use the 'wait' command as when I use 'run', the 'wait' portion of the 'run' command is not honored.
I really want the the line with 'run' in it to be something along the lines of: run """$current\purge.bat.lnk""", , 2; but the '2' never seems to be honored, and when I do try to use it, I get "%1 is not a valid Win32 application". Other iterations that I try seem to tell me something about Overflow 0/0. Does anyone have any help for this?
Thank you for any help that anyone can provide.
I really want the the line with 'run' in it to be something along the lines of: run """$current\purge.bat.lnk""", , 2; but the '2' never seems to be honored, and when I do try to use it, I get "%1 is not a valid Win32 application". Other iterations that I try seem to tell me something about Overflow 0/0. Does anyone have any help for this?
Code: Select all
setting "BackgroundFileOps", 0; //disable background processing
set $current, <curpath>;
copyto , "U:\Startup_Folders\purge.bat.lnk";
wait 2000; //pauses for 2 seconds
run """$current\purge.bat.lnk""";
delete 1, 0, "$current\purge.bat.lnk";
wait 5000; //pauses for 5 seconds
Focus('List');
sel a;
rename e, "1";