troycicle Posted January 30, 2005 Posted January 30, 2005 Is it possible using a batch file to copy a folder from a cd, and put it on your hard drive? I know you can do this with a single file using the copy command, but I can't get it to work using a folder.Would this work?XCOPY /Y /e "D:\$OEM$\$Docs\All Users\Desktop\Snapshots" "%SystemDrive%\Snapshots\"If I put %CDROM% where D: is, and I have my cd in another drive like the E, will the batch file work?
bc- Posted January 30, 2005 Posted January 30, 2005 try to use xcopy, it can handle folders and filesbc
sixpack Posted January 30, 2005 Posted January 30, 2005 FOR %%d 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 %%d\WIN51IP.SP2 SET CDROM=%%dxcopy /Y /e "%CDROM%\your folder\*.*" "%systemdrive%\your folder\"
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