Advertisement

02.20.2004 at 01:17PM PST, ID: 20892615
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

Press any key to skip program launch in batch file

Asked by traigo in MS DOS

Tags: , , , ,

I am writing a batch file to automate ghosting drives and running sid changer.  I want to add a 5 second delay between the ghost program and the sid changer program and have the option to press any key to skip the sid changer.  We don't need the sid changed on a win9x machine so this will allow us to skip it and go to the reboot.exe command.  Here is what my batch file has so far.  I have a simple choice command there for testing purposes right now, but I want the spacebar and enterkey and other special keys to be used to skip the sid program, actually, ANY key will skip the program.

@echo off
::running ghost
ghost.exe

::5 second pause with option to skip SID changer
choice.com /c:~0123456789qwertyuiopasdfghjklzxcvbnm /n /t~,5 Press any key to skip the SID Changer:  
if errorlevel 1 set selchar=0
if errorlevel 2 set selchar=1
if %selchar%==1 goto end

::running the sid changer
sid.exe

:end
::rebooting machine
reboot.exe


How can I get any key to skip this?  I don't HAVE to use the choice command.  I just want something that says "Press any key to skip the SID changer..." with a 5 second timeout.  If nothing is pressed it continues with the batch file and runs the sid changer.   If ANY key is pressed, then it skips to the :end and runs reboot.  I know I could have a choice of NT or Win9x in the choice.com command and have it default to NT and run the sid changer.  I don't want them to have to think about it, just exit ghost and hit the spacebar or any key at all if it is a win9x machine.  Can anyone help with this?

Thanks,
Traigo
Start Free Trial
 
Loading Advertisement...
 
[+][-]02.20.2004 at 03:08PM PST, ID: 10416864

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.20.2004 at 03:09PM PST, ID: 10416868

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.20.2004 at 03:56PM PST, ID: 10417090

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.20.2004 at 04:02PM PST, ID: 10417109

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.20.2004 at 09:35PM PST, ID: 10418247

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.20.2004 at 09:46PM PST, ID: 10418288

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.25.2004 at 01:01AM PST, ID: 10448677

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS DOS
Tags: batch, any, key, press, file
Sign Up Now!
Solution Provided By: windharp
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02.25.2004 at 07:41AM PST, ID: 10451317

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32