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.
Page 1 of 1
FirstLogon.cmd dvd drive how do you determine which letter is the dvd drive?
#2
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!
Share this topic:
Page 1 of 1



Help
Back to top









