PDA

View Full Version : CD Rom Variable ??


Chris Simon
July 19th, 2004, 23:29
Does anyone know of a CD rom variable I can use to execute a program? Instead of creating an execute command that points to d:\, e:\, Etc. I would like to use a Cd rom Varaible to find the cd drive then execute the setup off that drive. Any help would be appreciated.

chris

Ryan.Gray
July 21st, 2004, 15:10
You could do a WMI query for the CDDrives and then assign the result to a variable. Past that I am unaware of one.

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q180/7/66.asp?id=180766&SD=MSKB&NoWebContent=1

The above is a VB script google found for me right quick you could use through NI to determine this also.

Actually think I'll see about writing a shorter one shortly i'll try and post it once done.

Support_1
July 21st, 2004, 16:02
NetInstall has it's own variable for the first CD-Rom drive on a machine. It is '_CD_DRIVE'.