After the MSFN guide on OEMs
http://unattended.ms.../oemfolders.htm
<<You might ask, "why not run application installations from the CD itself?" This is because CD-ROM drive letters are bound to be different on every PC, which shows why there's no permanent "%CDROM%" environment variable.>>
I don't know if I can use other windows system variables:
C:Documents and SettingsNome Utente>set
ALLUSERSPROFILE=C:Documents and SettingsAll Users
APPDATA=C:Documents and SettingsNome UtenteDati applicazioni
CLASSPATH="C:WINDOWSSYSTEMQTJava.zip"
CLIENTNAME=Console
CommonProgramFiles=C:ProgrammiFile comuni
COMPUTERNAME=Icaro (Nome Computer)
ComSpec=C:WINDOWSsystem32cmd.exe
DEVMGR_SHOW_NONPRESENT_DEVICES=1
HOMEDRIVE=C:
HOMEPATH=Documents and SettingsNome Utente
LOGONSERVER=\Icaro (identificativo di rete)
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0207
ProgramFiles=C:Programmi
PROMPT=$P$G
QTJAVA="C:WINDOWSSYSTEMQTJava.zip"
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:WINDOWS
TEMP=C:Temp
TMP=C:Temp
USERDOMAIN=Icaro
USERNAME=Nome Utente
USERPROFILE=C:Documents and SettingsNome Utente
windir=C:WINDOWS
CAN I ???
Help Appreciated
Page 1 of 1
OEM Folders AND Win Variables Variables I can use in OEMs
#2
Posted 28 May 2005 - 11:24 AM
why not use a variable to set cdrom
example
for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\win51 set CDROM=%%i:
since win51 should be in the root of you cd it will set cdrom to the right drive letter then you could run the program by using
%cdrom%\path\program.exe
example
for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\win51 set CDROM=%%i:
since win51 should be in the root of you cd it will set cdrom to the right drive letter then you could run the program by using
%cdrom%\path\program.exe
#3
Posted 28 May 2005 - 03:59 PM
Thx, but that's not perfectly what I'm looking for... If I want just copy files like that I'm obliged to do a batch, can't I use the variables??
Share this topic:
Page 1 of 1



Help
Back to top








