Sometimes a Windows batch file works fine when executed from the command prompt but when executed by the script plugin it seems to hang. This is because some executables expect to write out results to the screen and if it cannot it will hang. This can be fixed as follows:
Instead of supplying "script.bat" in the script plugin, enter "script.bat > nul" or better yet "script.bat > c:\scriptsresult.txt".
If the above does not work individual lines in the script file (especially when calling an executable) can also be appended with "> nul" or "> filename"
If you create a script d.bat that looks like this:
and you place "d.bat" in your script plugin, the backup will never complete. But if you place "d.bat > nul" in the script plugin it will execute and complete the backup. If you enter"d.bat > c:\result.txt" the results will be written to c:\results.txt.
Old Article ID: 124
Posted: 29 Feb, 2012 by Van Rensburg J.