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 6544393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:27:36+00:00 2026-05-25T11:27:36+00:00

Is there an MSBuild task that will move a file OR a folder? Core,

  • 0

Is there an MSBuild task that will move a file OR a folder? Core, extension, community, wherever is fine.

I have an itemgroup that specifies a list of files and folders that are to be moved. I could split it out into two lists – one of files and one of folders. However, I would like to work out a task that could just handle both. I have looked for a while, and can not find any advice on how to do this.

Any help appreciated

  • 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-05-25T11:27:37+00:00Added an answer on May 25, 2026 at 11:27 am

    The MSBuild Extension Pack has a RoboCopy task which can handle your situation, see

    MSBuild.ExtensionPack.FileSystem.RoboCopy
    

    See this post for additional help: http://blogs.msdn.com/b/jjameson/archive/2009/11/07/using-robocopy-to-move-files-and-folders.aspx

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

Sidebar

Related Questions

I have a msbuild task that outputs to a file. Now I want to
Short version: I have an MSBuild project that imports another project. There is a
I have an msbuild project file that is used for building several C++ projects
I am looking for a MSBuild task that will tell me the version of
I have a WIX file that I need to modify using MSBuild. It starts
I am creating an MSBuild task that will generate one or more files, I
I have a MSBuild task that modifies an assembly. At the moment I place
Is there a native or custom MSBuild task available that returns the current OS
Is there a task in MSBuild that's synonymous with NAnt's <echo> task ? I
I'm trying to debug an MSBuild task, and I know there is some way

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.