kurt476
Nov 9 2004, 08:29 AM
i can't seem to get this command to work on the dos script.cmd or on run this command below:
%cdrom%
dose any budy know why i can't get this cmmand to work?
Denney
Nov 9 2004, 09:02 AM
%CDROM% is NOT an enviroment variable. You need to figure out a way to find the CDROM drive letter and assign it to that variable.
Take a look around here as there are some more posts (in the unattended forum I think) that explain how to set and use a %CDROM% variable.
Again, the %CDROM% variable is NOT a default environment variable.
kurt476
Nov 9 2004, 10:29 AM
i don't see any thing that so i can use %cdrom% can some1 explain to me how i can use this command so i can run things from cd rom? but each drive for the cd rom is differnet.
kurt476
Nov 9 2004, 10:42 AM
Astalavista
Nov 9 2004, 10:44 AM
my GOD... did u even try to do a search?
anyways here u pls use the search feature
http://unattended.msfn.org/xp/runonceex_cd.htm kurt476
Nov 9 2004, 10:49 AM
yes i did i put in cdrom foud nothing and put in %cdrom% found nothing again didn't find any thing on this commaind i just want to runn a command like this
start /wait %cdrom%\application\appiilcation.exe /silent
and i am just going to have a screen to click on so it automanicly installs when i click on it that all i want to do
Alanoll
Nov 9 2004, 11:03 AM
you HAVE to declare the CDROM variable to do something like that.
Unless you use a program like Autoplay Menu Studio which has built in support.
you HAVE to declare it SOMEWHERE.
kurt476
Nov 9 2004, 12:32 PM
yeah of cours i just don't know how to have this command how to find the d: drive or e: or something like that i need to find the cd-rom
Tsunami
Nov 9 2004, 12:34 PM
Well, you would know if you just read that website...
QUOTE (http://unattended.msfn.org/xp/runonceex_cd.htm)
In order to find the correct CD drive letter, we need to include some IF EXIST statements in the RunOnceEx.cmd file. Open RunOnceEx.cmd in Notepad, and include the following after @echo off:
IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:
Create a blank txt file called CD.txt and place this in C:\XPCD. This allows the IF EXIST command to scan all the drive letters specified, then when it finds CD.txt it will set an environment variable of %CDROM% pointing to the correct drive letter.
1chaoticadult
Nov 9 2004, 12:49 PM
You don't have to necessarily use CD.txt, I use WIN51IP.SP2 which works just like CD.txt doesn't.
kurt476
Nov 9 2004, 12:57 PM
well drthawhizkid can show me how that works?
Alanoll
Nov 9 2004, 04:11 PM
@kurt476
STOP!
READ!
he simply replaced CD.TXT in what Tsunami QUOTED with WIN51IP.SP2 as THAT file is already in the CDROOT of an XP CD. THE FILE YOU SPECIFY CAN BE ANYTHING!!! EVEN AUTORUN.INF IF YOU'RE SO INCLINED.
Thread Closed.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.