Group: Forum Members
I registered with this forum to ask this very question as the OP "how can I get it to show me the Command window while its running?" and thankfully found this thread.
My Robocopy execution line looks pretty much the same as posted above (Reflect V6 built it for me automatically when it generated the VBScript from my XML), but I tried the /TEE with and without /LOG:FILE option as suggested above and sadly nothing seems to work. I can see the progress of the Reflect backup and verification processes just fine, but after that completes successfully and the Robocopy folder synchronization begins, I very briefly see what appears to be a cmd.exe window pop up then it disappears (happens in milliseconds) and the copying seems to happen in the background, but there's no indication on my Taskbar or anything. The synchronization still completes fine if I let it go, but not having a status is really bothersome.
I have some very big backup images that can take a long time to copy/synchronize with my external drive. I would really like to see the cmd.exe window or something remain open as an indication that the backup folder synchronization is still in progress, otherwise I may not know and shut down Windows while the copy is still in progress and then not have a proper copy synchronized completely which could bite me later on. With Reflect having the option to automatically build that synchronization into a VBscript it is very useful, but I sort of feel the lack of any progress built into the script to go along with that is an important miss...seems like it should be essential considering we get a progress for the other tasks. I do understand robocopy is built into Windows and is not part of Reflect directly, but surely there has to be a way to do this?
I'm definitely not a VBscript expert, but did try some other things I found through Google searches such as trying cmd.exe /K or cmd.exe /C right before robocopy, such as the following:
strCmdLine = "cmd.exe /K robocopy ""<SOURCE>"" ""<DESTINATION>"" *.mr* /copy: DAT /lev:0 /purge /r:0"
The /k flag means it "carries out the command specified by string but remains", while /c means it closes, except in my case with /k the window still opens and closes in milliseconds and ultimately keeps Reflect showing "Running" in Scheduled Backups even after the synchronization is finished. The only way to get it to show the Scheduled task as "Ready" again is to go into Task Manager and then the "Details" tab (I'm using Windows 10 Pro 64-bit) then look for "cmd.exe" and end the task and immediately Reflect updates the status.