Wyverns Posted October 14, 2004 Posted October 14, 2004 I'd like to copy somme file from my unattended XP DVD to my hard drive during my installation sush as key file for some programs. How can I do that ?Some lines to add in my RunOnceEx.cmd or on my CleanUp.cmd ?Example : I'd like to copy my "wincmd.key" file from "%cdrom%\software\totalcmd\wincmd.key" to the installation directory "c:\totalcmd\"Thanks for help.
a06lp Posted October 14, 2004 Posted October 14, 2004 XCOPY "%cdrom%\software\totalcmd\wincmd.key" "%systemdrive%\totalcmd\" /Yshould work.
Wyverns Posted October 14, 2004 Author Posted October 14, 2004 OK I'll try.Edit : doesn't work. I've putting it in my "CleanUp.cmd" but there is no file copied to the totalcmd folder.Something else ??
CoffeeFiend Posted October 14, 2004 Posted October 14, 2004 Make sure your paths and filenames are correct, and that the bacthfile is actually getting executed. I use xcopy a lot and it never fails.
gunsmokingman Posted October 14, 2004 Posted October 14, 2004 Have you got something that set the cd varibleECHO 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\"PLACE A NAME OF A FILE HERE" CDROM=%%i
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