Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

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

- - - - -

  • Please log in to reply
2 replies to this topic

#1
andregcasal

andregcasal

    Amoguai

  • Member
  • PipPip
  • 196 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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, 17 May 2006 - 12:43 PM.



How to remove advertisement from MSFN

#2
allen2

allen2

    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,812 posts
If you use /e with xcopy it is to copy subfolders, remove it.

#3
andregcasal

andregcasal

    Amoguai

  • Member
  • PipPip
  • 196 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi allen2!

Oh My God! So simple! Thank's men :D
lololol

André Casal




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN