MSFN Forum: OEM Folders AND Win Variables - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

OEM Folders AND Win Variables Variables I can use in OEMs Rate Topic: -----

#1 User is offline   Bit.Imp 

  • Group: Members
  • Posts: 6
  • Joined: 25-May 05

Posted 28 May 2005 - 10:39 AM

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


#2 User is offline   Gen.Alexander 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 26-February 05

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

#3 User is offline   Bit.Imp 

  • Group: Members
  • Posts: 6
  • Joined: 25-May 05

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?? :huh:

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy