![]() ![]() In the PING command above, 10 phantom PINGS are executed with a delay of 6000ms (ie: 6 seconds) between them, you can play with these values to achieve the delay you need between batch file loops. ![]() There are other ways of achieving a delay according to the version of Windows running and what additional resource kits have been installed, but the PING command pretty much works under all circumstances. IF NOT EXIST C:\SOMEWHERE\SUBFOLDER\THISFILE.THS GOTO SKIP01 You could also modify this code and have it run in a loop with a, say, 1 minute delay in the loop and then put a reference to the batch file in the Windows startup folder: OFF To configure a watch folder, do the following: On the main page, click Create a Watch Folder. REM All this gets done if the file exists. Follow the steps below to create a watchfolder. IF NOT EXIST C:\SOMEWHERE\SUBFOLDER\THISFILE.THS EXIT 1 cmd file on a regular basis and that file could start with a line to check for the existence of the required file - in fact, I'd check for the non existence of the file for example: OFF You seem to be on the right lines - you could use the task scheduler to run a. (Also, I don't want to leave this question officially unanswered - and I hate to accept my own answer to the question - but I did upvote Linker3000's answer as a thanks!) StrTempFilePath = WScript.CreateObject("Scripting.FileSystemObject").GetSpecialFolder(2)
0 Comments
Leave a Reply. |