Computing.Net > Forums > Disk Operating System > Batch file>pause, then start prog.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch file>pause, then start prog.

Reply to Message Icon

Name: jumpyg
Date: March 12, 2004 at 06:26:17 Pacific
OS: WinXP Home
CPU/Ram: P4/512MB
Comment:

Hi,

I need to create a batch file that pauses for, say 10 seconds, before opening a single program.

This is what I have so far:
@echo off
"C:\Program Files\Sony Handheld\HOTSYNC.exe"

This does indeed launch the application. However, I need a pause before it launches. I've tried "choice /ck /t:k,10", which I found while searching. This command isn't recognized, however.

Also, the command window does not close when the EXE launches. How do I get that windows to close immediately? Thanks!



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: March 12, 2004 at 07:01:24 Pacific
Reply:

Check your InBox, I'm going to send you the required solution.


0

Response Number 2
Name: jumpyg
Date: March 12, 2004 at 08:02:29 Pacific
Reply:

I tried this line in order to have the command window clos after HOTSYNC.exe runs:

Start "C:\Program Files\Sony handheld\HOTSYNC.exe"

Unfortunately, now HOTSYNC.exe doesn't run at all. Now, when I execute the .bat file, it just opens a
command window at C:\Documents and Settings\Jumpyg\Desktop, which is where the
.bat file is located. The HOTSYNC.exe application doesn't launch at all now.

What am I doing wrong?


0

Response Number 3
Name: Wengier
Date: March 12, 2004 at 09:03:24 Pacific
Reply:

"What am I doing wrong?"

You are asking your question in a WRONG forum! Please read the following thread for more information:

http://www.computing.net/dos/wwwboard/forum/14633.html

Also, please check IVO's mail. But if it doesn't work, please post your question in the CORRECT forum, as the warning messages of this forum say!

---------------
Long Live DOS!


0

Response Number 4
Name: jumpyg
Date: March 12, 2004 at 09:17:51 Pacific
Reply:

I posted here because I saw an earlier message when I was searching that suggested posting batch file questions to the DOS forum.

http://computing.net/windowsxp/wwwboard/forum/28101.html

So, who am I supposed to believe?


0

Response Number 5
Name: jboy
Date: March 12, 2004 at 09:28:37 Pacific
Reply:

Well, you can believe some random poster from a 2 year old message - or the current instructions that appear before your eyes as you're posting.

No offense, and good luck with your question.


Better to remain silent and be thought a fool than to speak
out and remove all doubt.


0

Related Posts

See More



Response Number 6
Name: Wengier
Date: March 12, 2004 at 11:45:22 Pacific
Reply:

Some people could ask where to download copyrighted software in this forum 2 years ago, but currently they can't. The policy of this forum has changed in the last a few years.

---------------
Long Live DOS!


0

Response Number 7
Name: Wengier
Date: March 12, 2004 at 14:57:01 Pacific
Reply:

This topic has been redirected to the Windows XP Forum:

http://www.computing.net/windowsxp/wwwboard/forum/98455.html

Lots of responses in there, aren't there?

---------------
Long Live DOS!


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Batch file>pause, then start prog.

Batch file loop error www.computing.net/answers/dos/batch-file-loop-error/10525.html

batch file exit www.computing.net/answers/dos/batch-file-exit/12741.html

DOS Batch File containing command to capture drive name www.computing.net/answers/dos/dos-batch-file-containing-command-to-capture-drive-name/138.html