I need a little assistance sorting out an odd issue here. I have 2 functions that sychronize a folder on a network share with the users local copy. The first function is for a manual update that is called when the user clicks a button. The second function runs whenever the application is launched to ensure the user has the latest files at startup.
Both functions are running the same batch file that is basically running Robocopy with the mirror switch. The problem is, I prefer to run the batch file hidden so the user does not see any of the output. However, the batch file does not run when I try to use the @SW_HIDE parameter to hide the command window.
However, if I remove the @SW_HIDE, the batch files runs properly. I have verified this by deleting the local copy of the folder & trying the functions with and without the @SW_HIDE. With @SW_Hide parameter, the folder is not copied from the network share. When I remove the parameter, the batch file executes as expected and the folder is copied from the network location.
Is @SW_HIDE not a valid parameter for the Run & RunWait functions? The machines running my application are all Windows XP SP3. Anybody have any ideas why this is not working with the @SW_HIDE parameter? Any suggested workarounds to hide the window while the batch file is executed? Thanks in advance for any assistance.