Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: xcopy - exclude certain file types?  (Read 15120 times)

0 Members and 1 Guest are viewing this topic.

Gilgamesh21

    Topic Starter


    Intermediate

    xcopy - exclude certain file types?
    « on: May 20, 2008, 09:02:23 AM »
    hello everyone ,

     I am trying to copy a folder using xcopy but i want to exclude all files that have .exe extension on them.. i already know that you can specify a list.txt of all files you want to exclude (i.e. /EXCLUDE:c:\list.txt  [list.txt : which would contain the "names" of all exe files that i wish to be excluded]) ..but what i want is a "*.exe" like command that would exclude any .exe files in that folder from being copied to the new location.

    any clues?

    thanks

    Dias de verano

    • Guest
    Re: xcopy - exclude certain file types?
    « Reply #1 on: May 20, 2008, 11:15:06 AM »
    xcopy supports file type exclusion. Place this in your exclude file:

    .exe



    Gilgamesh21

      Topic Starter


      Intermediate

      Re: xcopy - exclude certain file types?
      « Reply #2 on: May 20, 2008, 07:14:23 PM »
      many thanks Dias de verano . FINALLY,it worked. shokran man.