Computing.Net > Forums > Disk Operating System > DOS copy problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DOS copy problem

Reply to Message Icon

Name: SubVersion
Date: January 1, 2003 at 12:18:55 Pacific
OS: DOS
CPU/Ram: AMD XP 1700+ 320mb RAM
Comment:

A mistake I make time and time again. When I go to copy mulitple files for backup purposes in DOS I always forget to create the directory I want to copy to first.

So I always end up doing something like copy *.* c:\backup but the backup directory doesn't exist, so it just creates a file which appears to be all the files I'm backing up put into one big file.

Does anyone have any ideas how I could go about retrieving the seperate files from this file I've created?



Sponsored Link
Ads by Google

Response Number 1
Name: DickM
Date: January 1, 2003 at 14:38:28 Pacific
Reply:

I always thought that merely created a directory, but didn't copy any files to it. If you copied the files, not moved them, and did not delete the originals, then can't you repeat the process creating a directory first? To create a directory type: md c:\backup (max 8 characters). If I have misinterpreted the question I apologise.


0

Response Number 2
Name: Secret_Doom
Date: January 1, 2003 at 19:43:32 Pacific
Reply:

The command SubVersion described will really create a file and put all the files that should be copied into it. Actually, I don't know in which way DOS does this, I'm not even sure that's exately what happens. What I know is that the file created gets a size that looks like the size of all the files which were copied together. So, I guess is that, somehow, DOS really copies the files to that file.

It seems to me that now SubVersion deleted the originals, and needs to recover the backed up files from that strange file (which should be a diretory).

Well, I have no idea how to do that...

-- Leonardo Pignataro - Secret_Doom --

secret_doom@hotmail.com
www.batch.hpg.com.br


0

Response Number 3
Name: Miskva3
Date: January 2, 2003 at 03:19:32 Pacific
Reply:

I am aware of this problem in DOS, I guess you should always be aware that the target exists .. or, you could use the magnificent copy utility called xcopy. Check its parameters, there's one which will create dirs automatically:

xcopy *.* C:\testing /i


0

Response Number 4
Name: JackG
Date: January 2, 2003 at 03:23:25 Pacific
Reply:

There is not much you can do unless they are text files. Then you can use a program like EDIT (or Notepad from within Windows) to break the file back into separate text files.

The problem is, that there is not NAME or Size information to help in the process. Copy just appends the data into one long file with no separators.

If you have a listing of the program's names and sizes, and it is a small file, you could use DEBUG to break the file up into small parts and name them as required. But that is a lot of work and requires extensive knowledge of how to use DEBUG and program file layouts.

To avoid this type of problem, always use XCOPY as it will either prompt you what to do with the data or create the subdirectory entry first.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


MS-DOS Prompt don't work ... Turbo pascal 55



Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: DOS copy problem

DOS copy command www.computing.net/answers/dos/dos-copy-command/12345.html

DOS copy problem www.computing.net/answers/dos/dos-copy-problem/15075.html

Dos copy www.computing.net/answers/dos/dos-copy/15571.html