Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


mf_2

Can I use the CHOICE command in a batch file called by a RunOnce entry

3 posts in this topic

Hello,

I have been trying to create an Unattended DVD for Windows XP Pro to help my employer install a bunch of PCs.

Throughout my research, I have read a great deal on this forum and I have found many answers to my many questions on here.

However now I seem to be stuck with a problem.

We have a final batch file setting up various things. This file is to be used on three different types of PCs, which requires the user to interact with the script. This is done by extensive use of the CHOICE command all over the script. The script works fine if I start it manually. However when I write it into the RunOnce folder of the Windows Registry via the RunOnceEx.cmd file in the DVD's $OEM$-dir, the batch file doesn't execute properly. It gets started and then just displays the first part (everything up until the first CHOICE command) in an endless loop. There is a DELAY command in the script above the CHOICE command, it gets ignored too. Both work fine if the script is started via a double click.

Putting a link to the script in the "Startup" folder produces the same error, regardless of how I call the batch file. I tried it with both a simple "batch.cmd" and a more sophisticated "start "" /wait "batch.cmd"".

What am I doing wrong??

Do you guys have any suggestions?

This is the last major bug in my DVD, and it's driving me nuts.

Thanks in advance,

mf_2

Edited by mf_2
0

Share this post


Link to post
Share on other sites

may be a problem with the batch script as opposed to when/where you are running it from. Can you post the script?

0

Share this post


Link to post
Share on other sites

Thanks a lot, that was the problem. It simply couldn't find any of the programs I was calling (including CHOICE.COM). :rolleyes:

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.