Jump to content

[Solved] XCOPY command, how to copy files but not folders?


Recommended Posts

Hi there!

I want to copy all files inside i386 but not the folders inside it. What i use is:

xcopy /Y /e %CDROM%\i386\*.* %SystemRoot%\Source\i386\

DEL /q /f %SystemRoot%\Source\i386\DOCS\*.*

DEL /q /f %SystemRoot%\Source\i386\DRIVERS\*.*

DEL /q /f %SystemRoot%\Source\i386\SOFTWARE\*.*

DEL /q /f %SystemRoot%\Source\i386\THEMES\*.*

Obviously this takes much more time than just copying the files inside i386, because THEMES and SOFTWARE folders are BIG (and they don't get deleted too), so i wonder if is there another option that just copies all files inside i386 but not any of the folders inside it :)

André Casal

Edited by andregcasal
Link to comment
Share on other sites


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...