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

  • Home
  • SEARCH
  • 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 8050231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:00:50+00:00 2026-06-05T07:00:50+00:00

Where I work, I test software, we put a new build of the software

  • 0

Where I work, I test software, we put a new build of the software on the server each day, I need to be able to save a copy of the build and renaming it for the date it was saved, how would I do this?

(the start and destination locations will be the same each time)

The file is just an installer kinda, it is all self contained.

I need it to access the date the original was created on, so I do not have the problem with multiple files of the same name, and making it easy to find the build I need.

  • 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-05T07:00:51+00:00Added an answer on June 5, 2026 at 7:00 am

    From msdn:

    string path = @"c:\temp\MyTest.txt";
    string path2 = path + "temp";
    
    try 
    {
            // Create the file and clean up handles.
            using (FileStream fs = File.Create(path)) {}
    
            // Ensure that the target does not exist.
            File.Delete(path2);
    
            // Copy the file.
            File.Copy(path, path2);
            Console.WriteLine("{0} copied to {1}", path, path2);
    
            // Try to copy the same file again, which should succeed.
            File.Copy(path, path2, true);
            Console.WriteLine("The second Copy operation succeeded, which was expected.");
        } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering why the following code doesn't work: String test = new String(new byte[]
I want to build a software test automation software and I'm playing around with
I'm trying to simulate some software and I need the user to be able
i'm curious how something like this would work class Test { public $price; }
I'm trying to get Thinking Sphinx to work in test mode in Rails. Basically
I've got eclipse workspaces for my full time job and my home test work
How can I update multiple values in MySQL? This didn't work: UPDATE test SET
I,m trying to work through and test a Voice Recognition example based on the
I have a recurring problem in templating projects. I can't really test my work
Work on this small test application to learn threading/locking. I have the following code,

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.