For a long time I suffered occasional mysterious losses of data from my organiser, usually noticed some time after the data had been entered, and suspected that they arose because something had brought processes to an abrupt halt while data that had been saved had yet to be flushed to my drives. So I wrote a batch file and run it as a scheduled task, and I have not noticed any more mysterious losses of data since. This supports but does not prove my suspicion, but rightly or wrongly is the background for my problem.
The content of my batch file is:
Can anybody suggest please how to achieve my objective? I should be delighted to do it in TCM, but would nevertheless be very interested to know how this can be done in the Windows command line.
The content of my batch file is:
@Echo %date% %time% >>"d:\synclogs\synclog.log"
C:\WINDOWS\system32\cmd.exe /c C:\scripts\sync.exe >> "d:\synclogs\synclog.log"
@Echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX >>"d:\synclogs\synclog.log"
The problem is that when it runs it brings up a command window which can be disposed of only by manually minimising it. So I should like to be able to include something in either my batch file or the scheduled task to minimise or dispense with the command window. Googling around I found various suggestions but none of them worked for me. For example, see: http://www.computerhope.com/issues/ch000932.htm.C:\WINDOWS\system32\cmd.exe /c C:\scripts\sync.exe >> "d:\synclogs\synclog.log"
@Echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX >>"d:\synclogs\synclog.log"
Can anybody suggest please how to achieve my objective? I should be delighted to do it in TCM, but would nevertheless be very interested to know how this can be done in the Windows command line.