Jump to content

OEM Folders AND Win Variables


Recommended Posts

After the MSFN guide on OEMs

http://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>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

Link to comment
Share on other sites


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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...