Jump to content

Recommended Posts

Posted

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?


Posted

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=%%d

xcopy /Y /e "%CDROM%\your folder\*.*" "%systemdrive%\your folder\"

:)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...