Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8387793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:18:41+00:00 2026-06-09T18:18:41+00:00

Here is how I am creating and using the exclude file list: :: Pull

  • 0

Here is how I am creating and using the exclude file list:

:: Pull out parameters
set srcDir=%1 
set destDir=%2

:: Create exclude file
Set excludeFile=%temp%\exclude_list.txt

:: Populate exclude file
Echo.%srcDir%\web.config > %excludeFile%
Echo.%srcDir%\bin\*.* >> %excludeFile%
Echo.%srcDir%\custom\*.* >> %excludeFile%
Echo.%srcDir%\dataentry\custom\*.* >> %excludeFile%
Echo.%srcDir%\images\custom\*.* >> %excludeFile%

:: do a robust copy from source to dest
robocopy %srcDir% %destDir% /e /xf %excludeFile%

But none of this stuff is excluded in the final copy; am I doing something wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:18:43+00:00Added an answer on June 9, 2026 at 6:18 pm

    The /XD and /XF options expect a list of paths to exclude, not the name of a file containing paths to exclude.

    :: Pull out parameters
    set srcDir=%1
    set destDir=%2
    
    :: do a robust copy from source to dest
    robocopy %srcDir% %destDir% /e /xd .\bin .\custom .\dataentry\custom .\images\custom /xf .\web.config
    

    I believe you need to use the /JOB or /IF option if you want to specify parameters in another file, though I haven’t used those options.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a web application using zend, here I create an interface from
Here is how I'm creating a file: System.IO.File.Create(Server.MapPath(..) + name + .html); But sometimes
I am creating a installer using WIX, The requirement here is that when the
I'm having trouble creating an instance of a class using Python's re module. Here's
I'm creating a dynamic responsive week calendar, using Twitter Bootstrap . Here's my current
i created a text file list.txt in commonapplicationdatafolder by using the following VBscript.i am
I've been using the popular MVVM Light toolkit: here for creating my Windows Phone
I am creating a slideshow using jquery based on the code given here -
I am creating an application using Netbeans 7.1.2 and I am using a file
I found this link to a page here on StackOverflow about Creating Audio using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.