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?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
andregcasal

andregcasal

    Amoguai

  • Member
  • PipPip
  • 196 posts
  • Joined 25-November 05
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,804 posts
  • Joined 13-January 06
If you use /e with xcopy it is to copy subfolders, remove it.

#3
andregcasal

andregcasal

    Amoguai

  • Member
  • PipPip
  • 196 posts
  • Joined 25-November 05
Hi allen2!

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

André Casal