Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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


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

  • Author

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

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.