The reference to the Run Program Action help topic was only pointing out where to look for a more detailed explanation of how to invoke batch files from a Run Program Action or RunProgramEx.
The permission denied / access error is most likely occurring because you aren't invoking the batch file like you need to, leading to an error which prevents the .Close code from being executed. Again, try:
DosCmd = "%DOSCMD% call """ & BatFile & """"
instead of
DosCmd = BatFile
in your script code.
|