I'll skip the disclaimers about not being a programming whiz, and plead for some help.
The task is to write a function for a button that will run a script file with some command modifiers thrown in. If I'm understanding the scripting environment correctly, I need to create a Command object and build the lines that I would enter in the Advanced button function. (The entire project needs to display a dialog box with notice to the user that the command is running, then destroy the dialog when the command completes). I can't seem to find a good example of how to create the command in vbs and have come up with this:
It's obvious that I'm missing several boats with the code above - even to me! When I run this, nothing happens. If I comment out all of the command section, the dialog box works fine. One other thing that has me stumped is whether I can create a message box that has no buttons and can be destroyed programmatically. The Windows command file resets folder inherited permissions on my temp files folder. The time the system takes to do this depends on how many files are in the folder, so I want to display the dialog while the process is executing, then close.
Thanks. I'm still having problems with building the command. I extracted the code and began working with it in the CLI interpreter, where I can get error messages. When I run the lines: