Batch file pause 5 seconds

22 сент. 2013 г. ... timeout Specifies the number of seconds to wait. Valid range is -1 ... 5 echo Time out with parameter /t (time out) timeout /t 3 /nobreak ...

Batch file pause 5 seconds. Aug 25, 2023 · Given two or more arguments, pause for the amount of time specified by the sum of their values. How to use the sleep command . To sleep for 3 seconds, enter: $ sleep 3 One can sleep for 0.8 seconds: $ sleep 0.8 In this final example, sleep for 1 minute and 42 seconds: $ sleep 1m 42s Bash add pause prompt using the sleep command:

I was wondering if there is a delay command in a batch file that can delay for less than a second (like 0.2 seconds). As of right now I only know of the timeout (seconds) which can only delay for a minimum of 1 second. I would appreciate any help :-)

waits in about 10 seconds (-n 10) and then continues to execute the batch file. retrofit sleep command. sleep.cmd in C:\Windows\System32. @echo off @ping localhost -n 2 > NUL @ping localhost -n %1 > NUL Windows Vista/7/8/10/11. since Windows Vista there is the command: timeoutIt is used within a computer batch file and allows the computer to pause the currently running batch file until the user presses any key. ... [Enter] (or any) key to continue. The last example will wait for 5 seconds before next command execute. We can pass the -t option to the read command to set time out value.21 1 6. The command line java -Xms3G -Xmx3G -jar minecraft_server.1.8.3.jar nogui starts java.exe to execute Minecraft server and the processing of the batch file by cmd.exe is halted until this instance of java.exe terminates itself, i.e. execution of Minecraft server is exited for whatever reason. Then the user is …If the host is not reachable, the sleep command pauses the script for 5 seconds, and then the loop starts from the beginning. Conclusion # The sleep command is one of the simplest Linux commands. It is used to pause the execution of the next command for a given amount of time. If you have any questions or feedback, feel free to leave a comment.there is no batch file command for a time delay. For any MS-DOS or Windows version with a TCP/IP client, PING can be used to delay execution for a number of seconds. If specified (-w switch), PING will wait for a number of milliseconds between two pings before giving a time-out. PING 1.1.1.1 -n 1 -w 60000 >NUL.

What I would like to do is set a time limit on the batch file / CMD prompt such that it automatically ... find "notepad.exe"') do set PID=%%a REM delay for 5 seconds FOR /l %%a in (5,-1,1) do (Echo closing in %%as ... the ping -n 2 -w 1 127.0.0.1 will pause for almost exactly 1 second (the amount of time between 2 pings) This works on XP, as ...Aug 25, 2023 · Given two or more arguments, pause for the amount of time specified by the sum of their values. How to use the sleep command . To sleep for 3 seconds, enter: $ sleep 3 One can sleep for 0.8 seconds: $ sleep 0.8 In this final example, sleep for 1 minute and 42 seconds: $ sleep 1m 42s Bash add pause prompt using the sleep command: This utility accepts a timeout parameter to wait for the specified time period (in seconds) or until any key is pressed. It also accepts a parameter to ignore the key press. For example, to wait for 10 seconds: TIMEOUT /T 10 For more details: TIMEOUT /? So for example if you need to terminate the CMD/BatchFile on failure it can be used like this. From command line: > ExploreShare2 "\\server\share" || exit. Within a batch file: call ExploreShare2 "\\server\share" || exit /b. Share.Nov 24, 2009 · Try this one: :loop arp -s 192.168.1.254 xx-xx-xx-xx-xx-xx ipconfig /flushdns ping localhost -n 11 > nul goto loop. The ping command will execute for 10 seconds, and all the output will be redirected to the NUL device, meaning that you will see no output from the ping command. It works indeed as a "sleep" command would.

Teams. Q&A for work. Connect and share knowledge within a single location that is structured and easy to search. Learn more about TeamsTo cause sleep to pause for one day, four hours, seven minutes and five seconds, use a command like this: sleep 1d 4h 7m 5s. The s suffix (for seconds) is optional. With no suffix, sleep will treat any duration as seconds. Suppose you wanted to have sleep pause for five minutes and twenty seconds. One correct format of this command is: sleep 5m 20.To cause sleep to pause for one day, four hours, seven minutes and five seconds, use a command like this: sleep 1d 4h 7m 5s. The s suffix (for seconds) is optional. With no suffix, sleep will treat any duration as seconds. Suppose you wanted to have sleep pause for five minutes and twenty seconds. One correct format of this command is: sleep 5m 20.24. This works: @echo off //Turn off screen text messages :loop //Set marker called loop, to return to start "Wicked_Article_Creator" "C:\Wicked Article Creator\Wicked Article Creator.exe" //Start program, with title and program path timeout /t 1200 >null //Wait 20 minutes taskkill /f /im "Image Name" >nul //Image name, e.g ...CHOICE /N /C YN /T 5 /D Y >NUL Using choice in Windows XP and earlier and MS-DOS. Using the choice command included with Windows XP and earlier, you can delay a batch file anywhere from 0 to 99 seconds. In this example, we illustrate a five-second delay. To increase or decrease this time, change the "5" to a different value.

Logan power outage.

2. Here is a really simple solution for Vista and Windows 7 that provides the timeout feature, but does not give a visual countdown. @echo off choice /c:CN /n /m "PC will restart in 30 minutes. Press N to restart Now, or C to Cancel" /t:1800 /d:N if errorlevel 2 (shutdown -r -t 60 -f) else echo Restart Canceled.You can call this in your batch file like: %_delay% seconds Like %_delay% 10 will wait for 10 seconds. To change the macro name replace "_delay" with anything else in fourth line.Windows batch file: waiting between steps in a <for> statement. 2. Windows batch: ... How to Delay batch script. 11. delay a batch file in under a second? 2. Issue with *For loop* and *delayed expansion* 1. running two commands with delay in a batch file. 0. Modify for loop to not use delayedexpansion in batch script. 2.I think this is the simplest way to do that: command1 ( start "task1" cmd /C "command3 & command4 & command5" start "task2" cmd /C "command6 & command7 & command8" ) | pause command9. Further details in …Example 2: Pause execution at the command line. This example shows that execution is paused for 5 seconds when run from the command line. PowerShell. PS> Get-Date; Start-Sleep -Seconds 5; Get-Date Friday, May 13, 2022 9:38:15 AM Friday, May 13, 2022 9:38:20 AM. PowerShell cannot execute the second Get-Date command until the sleep timer expires. You can use it for many tasks, such as waiting for an operation to be completed or pausing before repeating an operation. To sleep a PowerShell script for 5 seconds, you can run the following command. Start-Sleep -Seconds 5. You can also use the -milliseconds parameter to specify how long the resource sleeps in milliseconds.

While the technology and business world worked toward the weekend, developer operations (DevOps) firm GitLab filed to go public. Before we get into our time off, we need to pause, digest the company’s S-1 filing, and come to some early conc...To use the ping command: rem /* The IP address 127.0.0.1 (home) always exists; rem the standard ping interval is 1 second; so you need to do rem one more ping attempt than you want intervals to elapse: */ ping 127.0.0.1 -n 6 > nul. This is the only reliable way to guarantee the minimum wait time.timeout - Delay execution for a few seconds or minutes, for use within a batch file. For a one second delay you need -n 2 since the 1 second wait is inserted between consecutive pings. In general you need N+1 (successful) pings for an N seconds delay.Nov 8, 2020 · If you are calling the python script from a Windows Batch File, you can add pause to the end of the batch file instead of putting a command at the end of the python file, and you will get the same effect. This way the python file is OS independent, while the batch file could only ever be used in Windows anyway. – I'm trying to make an batch file that opens a website for 5 seconds, then closes it an then loop the batch, I got not much Succes, does anyone now how to do this, without letting all te cmd pages on screen(so the batch also closes the cmd after running) I hope someone can help me.[1] This command is available on all modern versions of windows, including Windows 10 . timeout /t <timeoutinseconds> [/nobreak]. [2] To pause for 30 seconds and prevent the user from interrupting the pause with a keystroke, you'd enter timeout /t 30 /nobreak. [3] The user will see Waiting for 30 seconds, press CTRL+C to quit ...Jun 5, 2015 · Alternatively, you could use the Sleep method in VBScript. It accepts values as milliseconds. Here is a simple example (save it to SLEEP.VBS or whatever name you want): ms = WScript.Arguments (0) WScript.Sleep ms. Then, in your batch file call it like this for a 0.5 second delay: CSCRIPT SLEEP.VBS 500. To restart a service, say from a batch file, chain the “net stop” and “net start” commands together like this: net stop <Service-Name> net start <Service-Name> NET will also Pause and Resume Windows Services. Not all services support pause and resume, but if you have one that does, NET can come in handy there as well. To pause a service ...Just I want to use a DOS commands to run a batch file at the backgorund. The OS I am going to use XP,Vista and Win7. Expecting dleay is amay be about 3-10 seconds. I tried the batch with out delay, but its not deleting a folder since that is used by another application. so I have to wait for few seconds for the exit –Pause 5 Seconds In A Batch File. Directly Open Incognito Window & Websites. Yahoo Account Log Out Code/Link. Google Account Log Out Code/Link. Enable File Extension View Using A Batch File. Hide Hard Disk Drives. Download Mozilla Firefox Without A Browser Using a Batch File.A batch file is a script file ... The next line is executed and the PAUSE command displays Press any key to continue . . . and ... (BE) command, where BE DELAY 18 would wait for 1 second, or the free 94-byte WAIT.COM where WAIT 5 would wait for 5 seconds, then return control to the script. Most such programs are 16-bit .COM files ...

Example 2: Pause execution at the command line. This example shows that execution is paused for 5 seconds when run from the command line. PowerShell. PS> Get-Date; Start-Sleep -Seconds 5; Get-Date Friday, May 13, 2022 9:38:15 AM Friday, May 13, 2022 9:38:20 AM. PowerShell cannot execute the second Get-Date command until the sleep timer expires.

e.g: run the first two commands in a script, wait 10 seconds then continue executing. Thanks. windows; batch-file; Share. Follow asked Oct 17, 2013 at 5:30. user2566898 user2566898. 1,497 2 2 ... Batch file that runs only during a specific time. 6. Wait batch file till specified time. 1.REM your payload here choice /c SX /n /t 1 /d X >nul if errorlevel 2 goto :start :pause echo paused. Press 'R' to resume. choice /c RX /n /t 1 /d X >nul if errorlevel 2 goto :pause goto :start. What (I guess) you really want, is called a keylogger (to catch keyboard input regardless of what application has the focus).PAUSE > NUL. Solution A: Suggested by @Magoo. set "TMode=timeout /t 7 /nobreak ^> nul". This solution escapes the > charactor, making > nul a part of the variable, not the redirection operator. Solution B: Suggested by @PualH. %TMode% > nul. Very simple; just redirect the command output to nul. Note there is one con:If we take the example from before and run that in a BATCH file: timeout /t 60 then while waiting those 60 seconds, you are actually able to break the timeout by pressing any key on your keyboard. To prevent this we simply add the parameter /NOBREAK to the end of it. timeout /t 60 /nobreak. By doing this it will timeout for 60 seconds, and if ...First solution. In the example below, the batch file is placed into a loop and executes the "dir" command every 20 seconds. This solution would be best for users who need to execute a command frequently. :START REM Execute the MS-DOS dir command ever 20 seconds. dir SLEEP 20 GOTO END. For the above batch file to run properly, …We can also use the read command to pause our Bash script. Use the -t command and the number of seconds to pause the script. We are also including the -p option and some informative text in this example, but it is not strictly necessary. #!/bin/bash read -p "Pausing for 5 seconds" -t 5 echo "Thanks for waiting." Copy.The preferred and most reliable method is searching for the string TTL=: :loop timeout 2 ping -n 1 %ipaddress% |find "TTL=" || goto :loop echo Answer received. || works as "if previous command ( find) wasn't successful, then". (as for the timeout: never build a loop without some idle time to reduce CPU load) Share.@echo off Start C:\a.exe SLEEP 5 Start C:\b.exe Start C:\c.exe I am using windows 10 64 bit. What I am trying to do is to run a.exe first. and then wait 5 seconds and run b and c simultaneously. But they all start running at the same timethere is no batch file command for a time delay. For any MS-DOS or Windows version with a TCP/IP client, PING can be used to delay execution for a …

Pet urgent care sewell nj.

Rdy 122.

Jul 30, 2020 · A user keystroke will typically resume execution even if the timeout period hasn’t elapsed. It is very simply used by passing in the number of seconds. # Pause for 2 seconds timeout /t 2 # Pause for 5 seconds but disallow keystroke breaks timeout /t 5 /nobreak # Pause indefinitely until a key is pressed timeout /t -1. This is basically what I want in a batch file. I want to be able to re-run "Do Stuff" whenever I press any key to go past the "Pause". while ... LOOP timeout /T 1 /NOBREAK ::pause or sleep x seconds also valid call myLabel if not ErrorLevel 1 goto :LOOP This way you can take care of errors too. Share.Add a comment. 1. For the sake of completeness, here's an old-school method using the classic DOS choice command. ECHO waiting 5 seconds... CHOICE /C:AB /D A /T 5 > NUL. Share. Improve this answer. @workoverflow for loop counting down from 600 seconds, -1 at a time until 1. Calculate min and second from seconds. Just pad with 0 for seconds. min and sec is passed to choice string. /c:CN1 is mapping C and N characters from input to errorlevel. If errorlevel is 1 or 2, user pressed a key and jumps to break. errorlevel 2 is N so hibernate. –You can use timeout command to wait for command prompt or batch script for the specified amount of time. The time is defined in Seconds. For example to wait for 5 seconds use. Use /T options: c:/> timeout /T 5. You can also specify seconds directly like: c:/> timeout 5. ADVERTISEMENT.If you need to quote the command, use another quoted string first as the window title. start "Someapp Window Title" "E:\somepath\someapp.exe". Or if you don't want to provide a window title, provide the path and command separately with /D switch. start /D "E:\somepath" someapp.exe. You can use the /B switch to stop creating a new window to ...Jan 28, 2014 · ping -n [delay in seconds + 1] 127.0.0.1 > NUL. Some versions of Windows (like Windows Server 2003) has the sleep.exe executable: sleep [delay in seconds] Note: Windows Resource kit for 2003 contains sleep.exe command. If you don't know the Windows version, simply use the ping hack since it'll be available. Share. Jan 21, 2015 · There's also waitfor, which pauses for X seconds or until a signal is received from another computer or window. timeout and waitfor are included with Windows 7 and newer. For compatibility with earlier versions of Windows, traditionally, ping is used to simulate a pause like this: ping -n 6 0.0.0.0 >NUL ... will pause for 5 seconds. ….

Don't forget search button and Google are your friend and reading others batches can help a lot either. 5 seconds countdown. @echo off. echo this window closes in 5 seconds. echo. echo 5. ping -n 2 127.0.0.1>nul. echo 4. ping -n 2 127.0.0.1>nul.Teams. Q&A for work. Connect and share knowledge within a single location that is structured and easy to search. Learn more about Teams3 дек. 2004 г. ... Don't forget search button and Google are your friend and reading others batches can help a lot either. 5 seconds countdown. @echo off echo this ...Mar 30, 2011 · This is basically what I want in a batch file. I want to be able to re-run "Do Stuff" whenever I press any key to go past the "Pause". ... LOOP timeout /T 1 /NOBREAK ... Open your .cmd batch file in Notepad. On line 2, immediately beneath the REM command, enter the command PAUSE. Your file should now look something like this one appearing here: Save the batch file ...You can use timeout command to wait for command prompt or batch script for the specified amount of time. The time is defined in Seconds. For example to wait for 5 seconds use. Use /T options: c:/> timeout /T 5. You can also specify seconds directly like: c:/> timeout 5. ADVERTISEMENT.Try this one: :loop arp -s 192.168.1.254 xx-xx-xx-xx-xx-xx ipconfig /flushdns ping localhost -n 11 > nul goto loop. The ping command will execute for 10 seconds, and all the output will be redirected to the NUL device, meaning that you will see no output from the ping command. It works indeed as a "sleep" command would.for me the pause was at the end but when Im running time consuming tasks such as the net stop, the pause command goes in between the net stops, for example The service has stopped successfully Press any key to continue The service has stopped successfully The service has stopped successfully The service has stopped successfully …Here is a simple way to do it by clearing the screen each time (you might not like it). @echo off set countdown=10 :timer_loop cls echo Wait... echo Waiting %countdown% seconds... timeout /t 1 /nobreak >nul set /a countdown=%countdown% -1 if %countdown% NEQ 0 goto :timer_loop echo Timer complete. Share.Jun 3, 2022 · 1. xxxxxxxxxx. timeout 5. Popularity 9/10 Helpfulness 10/10 Language shell. Source: stackoverflow.com. Tags: seconds shell wait. Share. Contributed on Jun 03 2022. Shy-ny Star-ling. Batch file pause 5 seconds, In batch the pause command pauses a file but do you want to hide the this file is paused pressany keh to continue or change that message here's how. Add Tip Ask Question Comment Download. Step 1: Hide Pause Prompt. Open notepad and type pause> nul and save the file as pause.bat to hide the pause prompt., Add a comment. 1. You can grab "sleep.exe" from the Windows Server 2003 resource kit and use sleep [seconds] but the easiest way to get a set delay is to simply ping localhost N+1 times, where N is the number of seconds. This will sleep for five seconds (there's no delay before the first ping, and a 1s delay after each): ping -n 6 localhost>nul., There's also waitfor, which pauses for X seconds or until a signal is received from another computer or window. timeout and waitfor are included with Windows 7 and newer. For compatibility with earlier versions of Windows, traditionally, ping is used to simulate a pause like this: ping -n 6 0.0.0.0 >NUL ... will pause for 5 seconds., In batch the pause command pauses a file but do you want to hide the this file is paused pressany keh to continue or change that message here's how. Add Tip Ask Question Comment Download. Step 1: Hide Pause Prompt. Open notepad and type pause> nul and save the file as pause.bat to hide the pause prompt., 18 апр. 2012 г. ... Examples: If you want to pause the execution of a batch file for 50 seconds, then you should insert below statement in your batch file. sleep 50., Paste the following two lines and replace <batch_file> with your actual batch file name. Prepend a path if the batch file isn't at the same folder. Set wShell = CreateObject ("Wscript.Shell") wShell.Run "cmd /c <batch_file>", 0. Beside 0 as second parameter you can also use one of the following Window states., Add a comment. 1. You can grab "sleep.exe" from the Windows Server 2003 resource kit and use sleep [seconds] but the easiest way to get a set delay is to simply ping localhost N+1 times, where N is the number of seconds. This will sleep for five seconds (there's no delay before the first ping, and a 1s delay after each): ping -n 6 localhost>nul., Open your .cmd batch file in Notepad. On line 2, immediately beneath the REM command, enter the command PAUSE. Your file should now look something like this one appearing here: Save the batch file ..., To let your PowerShell script pause for 2,5 seconds you can do the following: # Suspend the script for 2.5 seconds Start-Sleep -Seconds 2.5. The parameter -Seconds isn’t really needed, by default seconds are used. So you can also only specify the number of seconds Start-Sleep 5. But for readability is preferred to use the -s or …, Sleep.exe can be used to pause your batch for any number of seconds to allow the program to install fully before the batch file proceeds to install anything else. There are some programs which ignore the "start /wait" syntax, due to the program itself launching another process, then the sleep.exe is very useful. Share., This basically works. The /WAIT option is supposed to make START wait until an application completes before proceeding. I'm using START /WAIT to run the program which copies the files. But, START /WAIT only seems to actually wait a maximum of 5 minutes. In my scenario, this works okay for smaller cases, for which the next one …, I normally run aGallery-dl.bat manually; open the next folder, double-click to run; next folder run, etc., until I'm running between 5 and 10 cmd windows. Later when they've all completed, I might go thru another 5-10 folders, and so it goes. As each aGallery-dl.bat is executed, the requested files are downloaded and when complete, some …, It would serve well for pausing the output. Here is an image for reference: If you do not have that key, using the keyboard combination Control + NumLock should work just the same ( according to Wikipedia ). To resume execution/output, just press Enter or the Space Bar. Image Source: Wikipedia., TIMEOUT.exe. Delay execution for a few seconds or minutes, for use within a batch file. Syntax TIMEOUT -T delay [/nobreak] Key delay Delay in seconds (between -1 and 100000) to wait before continuing. The value -1 causes the computer to wait indefinitely for a keystroke (like the PAUSE command) /nobreak Ignore user key strokes. , Pause syntax. Suspends processing of a batch program and displays the message: Press any key to continue. PAUSE Pause examples pause. When placed in a batch file, pause stops the file from running until you press a key to continue., For example, if you have a trivial batch file that does something like. @Rem @Echo "Hello" pause @Echo Dir c:\windows. When the pause is executed, windows reckons it is at the 27th byte of the file. If you remove the first line, then because you have removed five characters, everything is shifted, but when you press any key, windows will ..., This is basically what I want in a batch file. I want to be able to re-run "Do Stuff" whenever I press any key to go past the "Pause". ... LOOP timeout /T 1 /NOBREAK ..., 164. If the last command fails pause won't work. You can fix it by putting "call" behind the command you are running (whatever command is before the pause) then the pause will work. So for example I had a phpunit batch file that looked like this: phpunit tests/sometests.php pause., 14 авг. 2016 г. ... ... a few more seconds. Adding a short time delay to the installer can help avoid this. To add a time delay, simply use the PING command to ..., If you need to quote the command, use another quoted string first as the window title. start "Someapp Window Title" "E:\somepath\someapp.exe". Or if you don't want to provide a window title, provide the path and command separately with /D switch. start /D "E:\somepath" someapp.exe. You can use the /B switch to stop creating a new window to ..., Nov 8, 2020 · If you are calling the python script from a Windows Batch File, you can add pause to the end of the batch file instead of putting a command at the end of the python file, and you will get the same effect. This way the python file is OS independent, while the batch file could only ever be used in Windows anyway. – , 5. To make sure that the other scripts wait for your proccess to be complete, call it using start /wait - this calls another batch or command line script: start /wait batchforpython.bat. so batchforpython.bat would contain. C:\Python34\python.exe C:\Where\your\python\file\is.py. which is how you can call your python program from a …, 3 There is timeout command that waits for seconds. In case if millisecond sleep is needed, powershell's Start-Sleep can be used. To sleep 50ms in cmd: powershell Start-Sleep -m 50 - Pavel P Feb 22, 2018 at 5:37 @Pavel: You can also misuse a ping to a non-existent host to sleep for milliseconds. - Joey Mar 1, 2018 at 10:58, Syntax pause Parameters Remarks If you press CTRL+C to stop a batch program, the following message appears, Terminate batch job (Y/N)?. If you press Y (for …, To overcome this issue, we can make the bat file to wait for the user input to terminate the window like getch () is being used in C programming. To do that, add the following line at end of the bat file. set /p DUMMY=Hit ENTER to continue... Once the batch file is processed, it will wait for your key input to close., Here, you need to know how to create a batch file in windows. It is very simple. First, copy the code in a notepad file and save this file with .bat extension. To run or execute the file, double click on it or type the file name on cmd. Example 1: Let’s start by looping a simple command, such as ‘echo’. ‘ echo ‘ commands is analogous ..., Pause is often used at the end of a script to give the user time to read some output text. An alternative to this is to run the script using CMD /K: START CMD /k C:\demo\yourscript.cmd. That will run the script and the window will remain open for any further input. The advantage of CMD /K is that you can then run the same script in 'unattended ... , 26 февр. 2023 г. ... As said, delete pause. ... Timeout in this context means that the command was not successfully executed/finished within the specified 5 seconds ( ..., 2. Here is a really simple solution for Vista and Windows 7 that provides the timeout feature, but does not give a visual countdown. @echo off choice /c:CN /n /m "PC will restart in 30 minutes. Press N to restart Now, or C to Cancel" /t:1800 /d:N if errorlevel 2 (shutdown -r -t 60 -f) else echo Restart Canceled., jhowell3 wrote: there is no batch file command for a time delay. For any MS-DOS or Windows version with a TCP/IP client, PING can be used to delay execution for a number of seconds. If specified (-w switch), PING will wait for a number of milliseconds between two pings before giving a time-out. PING 1.1.1.1 -n 1 -w 60000 >NUL., timetout は、指定された秒の実行を遅らせます。. 構文. timeout <seconds> /nobreak. <seconds> は、 -1 から 100000 までの任意の値です。. -1 を指定すると、コンピューターはキーストロークまで無期限に待機します。. /nobreak はユーザーボタンを無視して、ボタンの影響を ..., There's also waitfor, which pauses for X seconds or until a signal is received from another computer or window. timeout and waitfor are included with Windows 7 and newer. For compatibility with earlier versions of Windows, traditionally, ping is used to simulate a pause like this: ping -n 6 0.0.0.0 >NUL ... will pause for 5 seconds., Just I want to use a DOS commands to run a batch file at the backgorund. The OS I am going to use XP,Vista and Win7. Expecting dleay is amay be about 3-10 seconds. I tried the batch with out delay, but its not deleting a folder since that is used by another application. so I have to wait for few seconds for the exit –