Computing.Net > Forums > Windows XP > Creating Batch files for XP

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Creating Batch files for XP

Reply to Message Icon

Name: lonerngraust
Date: November 19, 2005 at 13:36:10 Pacific
OS: Windows XP Home
CPU/Ram: Various
Comment:

I work at a computer shop and we use a dvd that contains video's. I created a batch file to install everything for us (video files, Play lists, Windows media Player version 10), and that works great.

The other day I noticed on the WMVHD web site (www.wmvhd.com) some new videos. These videos use Digital Rights Management. So in order to watch these videos, the computer needs to be connected to the internet to access the license.

Unfortunately, not every PC is connected to the internet. So my plans were to create an install program that asked the user for input. For example:

1. Press 1 and RETURN to set up a PC not connected to the internet.
2. Press 2 and RETURN to set up a PC that is connected to the internet.

This way I could install the files that required internet Access to download the DRM license only on the PC's with internet access (as well as the other files), and keep the PC's not connected to the net free of these files.

The problem at the moment is that the DOS prompt closes after displaying the menu, giving the user no time to enter an option. I am using Windows XP, and these are limited to DOS 5.1.2600, which means I can't use the CHOICE command.....

Any suggestions would be appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: November 19, 2005 at 14:11:57 Pacific
Reply:

I don't know why you think you can't use CHOICE, but it's over to you on that one.

Here's another way:

::
@echo off

echo connected PC? y or n

set /p c=

goto %c%

:y
:Y
echo here's where you load for a connected PC
goto :eof

:n
:N

echo here's where you load for a non-connected PC
:: DONE



If at first you don't succeed, you're about average.

M2


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Creating Batch files for XP

delete batch file for XP please? www.computing.net/answers/windows-xp/delete-batch-file-for-xp-please/126855.html

Create batch File for WinXP www.computing.net/answers/windows-xp/create-batch-file-for-winxp/110788.html

Ping batch file on XP www.computing.net/answers/windows-xp/ping-batch-file-on-xp/34512.html