Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Back-up file in the same drive....is this possible?

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
US
I want to run a Windows batch job to back-up (copy) files into the same drive (directory). If this is possibe, please let me know how to do it.

I appreciate any feedbacks.
 
As duplicate file names are not permissable within the same directory, the answer has to be no. Depending on what you are trying to achieve, there are other possibilities.

- You could copy the contents of one directory to another, and this is most likely easiest to achieve and automate via a good old DOS Batch file, such as "copy c:\folder1\*.* c:\folder2*.*"

- This can be time consuming, especially if the folder is large and worse still if most files don't change. Far better to use an archive / compression program. I used to use ARJ to do something like this; but I used the relevent switches to update the archive with changed and / or new files. If you opt for this route, make sure you use a really good utility. I found ARJ to be rock solid and achieved really good compression ratios, and of course it is really fast. Write a .BAT file, put a short cut to your desktop and away you go.

One thing though, I would not feel safe with putting any form of backup or copy on the same drive, let alone in the same directory. Like I said, depends on what you wanna do it for.

 
I wrote a small batch file that copies the important windows file to a directory on my other hardrive. I also have a backup program winrescue 98 running to make decent backups to the network drive. I found more often then not if the computer was fried, the winrescue would work properly. That little batch file backup worked wonders and saved my butt more then a couple of times. I can remeber one incident that it saved me a reinstall of the O/S!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top