MSFN Forum: [Solved] XCOPY command, how to copy files but not folders? - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Solved] XCOPY command, how to copy files but not folders? Just remove (or don't write) the "/e" command :) Rate Topic: -----

#1 User is offline   andregcasal 

  • Amoguai
  • PipPip
  • Group: Members
  • Posts: 196
  • Joined: 25-November 05
  • OS:Windows 7 x64
  • Country: Country Flag

  Posted 17 May 2006 - 12:37 PM

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

This post has been edited by andregcasal: 17 May 2006 - 12:43 PM



#2 User is offline   allen2 

  • Not really Newbie
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,751
  • Joined: 13-January 06

Posted 17 May 2006 - 12:40 PM

If you use /e with xcopy it is to copy subfolders, remove it.

#3 User is offline   andregcasal 

  • Amoguai
  • PipPip
  • Group: Members
  • Posts: 196
  • Joined: 25-November 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 May 2006 - 12:42 PM

Hi allen2!

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

André Casal

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy