MSFN Forum: FirstLogon.cmd dvd drive - MSFN Forum

Jump to content



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

FirstLogon.cmd dvd drive how do you determine which letter is the dvd drive? Rate Topic: -----

#1 User is offline   cheeseboy 

  • Group: Members
  • Posts: 4
  • Joined: 02-November 07

Posted 07 November 2007 - 04:59 PM

I have created a unattended vista install and now I want to add office 2007 to it. the problem I am running into is that I don't know how to tell the firstlogon.cmd where the files are. does anyone know how to either:

reference the dvd drive even though I don't know what letter it will be.

or

copy office files to a specific folder on the C drive so I can just put a path into the firstlogon.cmd like c:\install\officd2007\setup.exe?

Thanks in advance for your help.


#2 User is offline   Siginet 

  • Windows XP PowerPacker Creator
  • PipPipPipPipPip
  • Group: Members
  • Posts: 722
  • Joined: 22-January 05

Posted 07 November 2007 - 08:27 PM

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\Path\To\File\anyname.txt set CDROM=%%i


Place that at the beginning of your batch file.

Change: "Path\To\File\anyname.txt"
To whatever the path on your disk to a specific file is.

For instance if you had a file named Office2k7.dat at the root of your disk your code would look like:
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\Office2k7.dat set CDROM=%%i


Enjoy! :D

#3 User is offline   cheeseboy 

  • Group: Members
  • Posts: 4
  • Joined: 02-November 07

Posted 08 November 2007 - 10:33 AM

Thank you so much. this is perfect.

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