Computing.Net > Forums > Programming > Copying a file to another loc?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Copying a file to another loc?

Reply to Message Icon

Name: tjcusick
Date: March 3, 2009 at 12:28:34 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

I am working on a networked laptop and when i compile my program into an EXE i want to move it to a network location for testing. BUT i do not want to overwrite the existing file. Does anyone have a batch file or another way of taking the existing file on the deposited location and renaming it with a unique name and then copy over the newly compiled EXE?



Sponsored Link
Ads by Google

Response Number 1
Name: wizard-fred
Date: March 3, 2009 at 16:59:51 Pacific
Reply:

Why do you have to rename the old? Don't you keep a versoning
backup system either on your laptop or server?



0

Response Number 2
Name: tjcusick
Date: March 3, 2009 at 19:29:39 Pacific
Reply:

They want the previous version on the server for testing purposes if something is wrong with the newer version. It's not my choice but it's the company's procedure.


0

Response Number 3
Name: wizard-fred
Date: March 4, 2009 at 01:23:23 Pacific
Reply:

If you just keep the prior version just rename it and copy the newer
one over. Maintaining multiple versions is harder and uses much
disk space. I used embed a version no and date in the code to
display a version code on the screen and the print out if code
changes maybe just minor changes.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Receiving UDP packets wit... send commands in a file, ...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Copying a file to another loc?

copying part of a file to another www.computing.net/answers/programming/copying-part-of-a-file-to-another/18680.html

Copy a file to system32 folder of multiple co www.computing.net/answers/programming/copy-a-file-to-system32-folder-of-multiple-co/19810.html

copies a file 2 a folder andsubdir www.computing.net/answers/programming/copies-a-file-2-a-folder-andsubdir/12321.html