(imported topic written by Matt.Johnson)
Now I am SURE that the code works, when used propertly. I am still new to writing this kind of code so here is what I am trying to do and what code I am using:
Desired actions:
-
Run a DELETE for folder C:\APPS\FOLDER (Ensuring if it exists that it doesn’t hang the action on step 2
-
Make Dir C:\APPS\FOLDER
-
Copy FILE.VBS from \SERVER\SHARE\ to C:\APPS\FOLDER
-
RUN C:\APPS\FOLDER\FILE.VBS
-
WAIT for this to complete
-
DELETE C:\APPS\FOLDER
The code that is failing to work is:
DELETE C:\APPS\SendMail.vbs
COPY \SERVER\share\SendMail.VBS C:\APPS\SendMail.VBS
WAITHIDDEN DOS C:\APPS\SendMail.vbs
Now it says it completed - but it didn’t create the folder, and on the next pass it fails at the DELETE command.
What am I doing wrong here?
Also is there a good Action generator out there?
Thanks!