Page 1 of 1
i can't seem to get his command to work.....
#1
Posted 09 November 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?
%cdrom%
dose any budy know why i can't get this cmmand to work?
#2
Posted 09 November 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.
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.
#3
Posted 09 November 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.
#4
Posted 09 November 2004 - 10:42 AM
hi me again yeah i didn't find any thing about this %cdrom% command i didn't find what i was looking for!
#5
Posted 09 November 2004 - 10:44 AM
my GOD... did u even try to do a search?
anyways here u pls use the search feature
http://unattended.ms...unonceex_cd.htm
anyways here u pls use the search feature
http://unattended.ms...unonceex_cd.htm
#6
Posted 09 November 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
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
#7
Posted 09 November 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.
Unless you use a program like Autoplay Menu Studio which has built in support.
you HAVE to declare it SOMEWHERE.
#8
Posted 09 November 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
#9
Posted 09 November 2004 - 12:34 PM
Well, you would know if you just read that website...
Quote
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.
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.
#10
Posted 09 November 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.
#12
Posted 09 November 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.
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.
- ← For those who are paranoid about ACDSee7
- Application Installs
- Office 2003 Resource Kit (ork.exe) switch? →
Share this topic:
Page 1 of 1



Help
This topic is locked

Back to top








