cheeseboy Posted November 7, 2007 Posted November 7, 2007 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.
Siginet Posted November 8, 2007 Posted November 8, 2007 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=%%iPlace 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=%%iEnjoy!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now