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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:28:45+00:00 2026-06-02T19:28:45+00:00

I would like either a command prompt solution or a Visual Studio 2008 solution

  • 0

I would like either a command prompt solution or a Visual Studio 2008 solution for the following:

I am building a solution in Visual Studio 2008 C# and I need to test it.

In order to test the solution, I need to copy it to a different machine.

My process is:

  1. copy debug folder to shared location
  2. copy from the shared location onto the source machine

I try to do it like this:

rmdir s:\debug /s /q
s:
md debug
copy "C:\Documents and Settings\user123\Desktop\eFormsSystem\eFormsApp\bin\Debug\*.*" s:\debug\

however it is saying that THE SYSTEM CANNOT FIND THE PATH SPECIFIED.

I am certain there is a problem with the code above; however I would like to know:

  1. Is there a way to do this using Visual Studio? I would want it to copy the debug directory into a shared location as soon as there is a build.
  2. If command prompt is better suited for this, can you please tell me what is wrong with my code above?
  • 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-02T19:28:45+00:00Added an answer on June 2, 2026 at 7:28 pm

    There are two things you can try. First is try using the switches on the copy command like you did for the rmdir command. Try adding the /Y and /Z switches.

    • /Y = Suppresses prompting to confirm you want to overwrite an
      existing destination file.
    • /Z = Copies networked files in restartable mode.

    May just want to try this first. I know the /Y is redundant since you are removing the destination directory before copying.

    copy "C:\Documents and Settings\user123\Desktop\eFormsSystem\eFormsApp\bin\Debug\*.*" s:\debug\ /Z /Y
    

    Secondly, you asked if you could do this from Visual Studio. You could use the post-build event on the project to copy files to another location on the network after a successful build. However, you first need to get the command working.

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

Sidebar

Related Questions

I would like to script this command ffmpeg -i concat:file1.mp3\|file2.mp3 -acodec copy output.mp3 which
Does anyone know if there exist some kind of immediate-window-like command prompt, either to
I would like to convert either an html or xhtml document (preferably with styles)
I have two select lists, I would like jquery to either remove or disable
I would like be able to run a single command in my project folder
I have a linux command line that I need to execute witin either PHP
Would like to be able to set colors of headings and such, different font
Would like to know what a programmer should know to become a good at
Would like to make anapplication in Java that will not automatically parse parameters used
Would like to know the c# code to actually retrieve the IP type: Static

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.