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

DOS copy problem

Reply to Message Icon

Original Message
Name: SubVersion
Date: January 1, 2003 at 12:18:55 Pacific
Subject: DOS copy problem
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?


Report Offensive Message For Removal


Response Number 1
Name: DickM
Date: January 1, 2003 at 14:38:28 Pacific
Subject: DOS copy problem
Reply: (edit)

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.


Report Offensive Follow Up For Removal

Response Number 2
Name: Secret_Doom
Date: January 1, 2003 at 19:43:32 Pacific
Subject: DOS copy problem
Reply: (edit)

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


Report Offensive Follow Up For Removal

Response Number 3
Name: Miskva3
Date: January 2, 2003 at 03:19:32 Pacific
Subject: DOS copy problem
Reply: (edit)

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


Report Offensive Follow Up For Removal

Response Number 4
Name: JackG
Date: January 2, 2003 at 03:23:25 Pacific
Subject: DOS copy problem
Reply: (edit)

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.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: DOS copy problem

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge