Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

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

- - - - -

  • Please log in to reply
2 replies to this topic

#1
mf_2

mf_2

    Newbie

  • Member
  • 34 posts
  • Joined 02-July 07
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, 02 July 2007 - 03:09 PM.



How to remove advertisement from MSFN

#2
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • Joined 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag
may be a problem with the batch script as opposed to when/where you are running it from. Can you post the script?

#3
mf_2

mf_2

    Newbie

  • Member
  • 34 posts
  • Joined 02-July 07
Thanks a lot, that was the problem. It simply couldn't find any of the programs I was calling (including CHOICE.COM). :rolleyes:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users