Name: c627627 Date: September 7, 2004 at 17:55:06 Pacific Subject: DOS command for 'Wait 5 seconds...' OS: 98/Me/2000/XP CPU/Ram: Athlon XP 3x256MB PC2700
Comment:
What's the DOS command for 'Wait 5 seconds, then execute any key'
After it says *** Press Any Key to Continue *** below, I would like it to wait 5 seconds so I can switch floppies, then automatically execute a command that any key has been pressed.
ECHO. ECHO Insert Drive Image Disk 2 (Program) ECHO. ECHO. ECHO *** Press Any Key to Continue *** ECHO. PAUSE >NUL
ECHO Drive Image 2002 ECHO Copyright 1994-2002, PowerQuest Corporation. ECHO All rights reserved. ECHO. ECHO Loading. Please wait... ECHO.
The reason for asking this is:
1. An old computer whose Keyboard PS/2 port fell off but mouse PS/2 port & USB ports are still there & working. 2. Connecting keyboard to mouse PS/2 port doesn't work, using PS/2 splitters doesn't work but USB Keyboard does. 3. USB keyboard doesn't work under DOS.
I know there are External USB HD/CDRW DOS drivers but searching for USB Keyboard DOS drivers yielded no results.
I'd also like to know if you can access an old computer's BIOS from Windows?
1. Don't understand why you need to wait 5 seconds - the pause command will wait for you to press a key, giving you as little or as much time as you need to switch floppies. 2. You could always just put the USB drivers on the boot-disk, and then you won't have to switch floppies in the first place... 3. Although Windows can access the BIOS, you, as the user, cannot directly access the BIOS from Windows (unless you're into old-school assembly programming ^_^ ).
1.The computer's Ps/2 keyboard port is broken (physically chopped off :) ) so only USB keyboards can be used on it which don't work in DOS, as explained right where it says: "The reason for asking this is..." above. :)
2. There's no such thing as DOS USB drivers for keyboards, is there? (There's external USB HD/CDRW DOS drivers out there but not for USB keyboards that I know of.)
Drive Image on floppies can be used with a PS/2 mouse which I have but:
The problem is that the program uses two start up floppies and asks for 'any key' to be pressed when inserting the second floppy which I can't do with a USB Keyboard.
Drive Image can be also run from a CD but I need to change the Boot Device order in BIOS, hence the BIOS question.
3. I take it there's no software that can change the BIOS values if one has access to a USB and not a PS/2 Keyboard?
I came up with a somewhat odd way of waiting for a specified amount of time the other day when writing a batch file.
First, it requires the PING tool, so I don't know if it will work very well for you, but it's worth a shot.
Use it like this if you want to wait 5 seconds with no output:
PING 1.1.1.1 /N 3 /W 1000 > NUL
The general rule that seems to be pretty accurate is to divide the number of seconds to wait by 2 and use that value for the /N switch. This example is for 5 seconds, so you use use /N 3 to get pretty close to 5 secs (about 5.3 secs on my system).
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE