Bit.Imp Posted May 28, 2005 Share Posted May 28, 2005 After the MSFN guide on OEMshttp://unattended.msfn.org/global/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>setALLUSERSPROFILE=C:Documents and SettingsAll UsersAPPDATA=C:Documents and SettingsNome UtenteDati applicazioniCLASSPATH="C:WINDOWSSYSTEMQTJava.zip"CLIENTNAME=ConsoleCommonProgramFiles=C:ProgrammiFile comuniCOMPUTERNAME=Icaro (Nome Computer)ComSpec=C:WINDOWSsystem32cmd.exeDEVMGR_SHOW_NONPRESENT_DEVICES=1HOMEDRIVE=C:HOMEPATH=Documents and SettingsNome UtenteLOGONSERVER=\Icaro (identificativo di rete)NUMBER_OF_PROCESSORS=1OS=Windows_NTPATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSHPROCESSOR_ARCHITECTURE=x86PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntelPROCESSOR_LEVEL=15PROCESSOR_REVISION=0207ProgramFiles=C:ProgrammiPROMPT=$P$GQTJAVA="C:WINDOWSSYSTEMQTJava.zip"SESSIONNAME=ConsoleSystemDrive=C:SystemRoot=C:WINDOWSTEMP=C:TempTMP=C:TempUSERDOMAIN=IcaroUSERNAME=Nome UtenteUSERPROFILE=C:Documents and SettingsNome Utentewindir=C:WINDOWSCAN I ???Help Appreciated Link to comment Share on other sites More sharing options...
Gen.Alexander Posted May 28, 2005 Share Posted May 28, 2005 why not use a variable to set cdromexample 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 Link to comment Share on other sites More sharing options...
Bit.Imp Posted May 28, 2005 Author Share Posted May 28, 2005 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?? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now