0

I am using windows vista.

i have a folder containing many files and subfolders.

i need to copy the contents of that folder to another without including any files of the extension .txt.

how do i do that?

Kim Stacks
  • 10,202
  • 35
  • 151
  • 282

2 Answers2

0

you can use xcopy.. Then provide the /EXCLUDE:file1[+file2][+file3]... option to exclude .txt files

ghostdog74
  • 327,991
  • 56
  • 259
  • 343
0

On Windows Vista and further you have the tool Robocopy, a more powerful copy command which allows you to perform tasks as yours

For windows XP can be downloaded from MS from here

I suggest you running robocopy /? to see the options and take a look at /XF

spuas
  • 1,683
  • 1
  • 16
  • 26