CHOICE command line in winXP

  • Thread starter Thread starter Osi
  • Start date Start date
O

Osi

hi,

what can i use to delay a batch file.
the command CHOICE is not supported for winXP and win2K.

i have to use them under WinXP and Win2K.

please send me an email:

(e-mail address removed)

cheers
Osi
 
hi,
what can i use to delay a batch file.
the command CHOICE is not supported for winXP and win2K.

If you JUST want to delay it, for instance, until a key is pressed, than you
can use the PAUSE command. This will work under XP, not sure about 2k.

- Ben
 
Osi said:
what can i use to delay a batch file.
the command CHOICE is not supported for winXP and win2K.

i have to use them under WinXP and Win2K.

Hi

set /p can be used:

@echo off
set /p FOLDER=Enter the folder path:
echo %FOLDER%
pause


If you want a windows dialog box from your batch file, you can use freeware
utilities for this:

Batch Utilities & Tools
http://home.mnet-online.de/horst.muc/main.htm

- and -

Batch Query
http://wettberg.home.texas.net/freeware.htm


Batch Query - The program provides a way to produce Windows dialogs to ask
questions or provide information during logon script or batch file processing.
The included "example.bat" shows each type of dialog produced.
 
hi,

i wnat to run automatically, as the choice command
under win95 and win98 allows me to do it.

cheers
 
hi,

following is the code that perfectly working
under win98, can you suggest how can i get to work
under win2K and winXP?

set OSI=C:\temp
REN %OSI%\*.txt *.osi
choice/c:./t:.,5/n
CALL %OSI%\changeExtenstion.bat

it calls itself every 5 seconds.

cheers
Osi
 
following is the code that perfectly working
under win98, can you suggest how can i get to work
under win2K and winXP?

set OSI=C:\temp
REN %OSI%\*.txt *.osi
choice/c:./t:.,5/n
CALL %OSI%\changeExtenstion.bat

it calls itself every 5 seconds.

Hi

Sorry, I didn't read get your question properly.

You can do a sleep using ping.exe (not CPU intensive). Sleep approx. 5 seconds
(number behind -n is seconds +1):

ping.exe -n 6 localhost >nul


Alternatively, you can use the sleep.exe in the Windows Server 2003 Resource
Kit Tools.
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

The download link above also lists all the utilities that is in the RK. The kit
will install on WinXP or later.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top