Computers & Internet Logo

Related Topics:

Nizam Posted on Mar 03, 2008

Dos Problem Hi.. I have run a copy command in dos eg: c:\ copy *.* c:\test (NB! the directory test did not exist at the time of the copy) The data copied itself to a file called test.file. How can I retrieve the data from test.file and copy it under a folder called test! If you type test.file in dos, all the information shows up under the file. Thank you kindly Nizam

  • Nizam Mar 04, 2008

    thanks for your help, really appreciate it!!

×

2 Answers

Anonymous

Level 1:

An expert who has achieved level 1.

MVP:

An expert that got 5 achievements.

Governor:

An expert whose answer got voted for 20 times.

Hot-Shot:

An expert who has answered 20 questions.

  • Contributor 37 Answers
  • Posted on Mar 04, 2008
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

MVP:

An expert that got 5 achievements.

Governor:

An expert whose answer got voted for 20 times.

Hot-Shot:

An expert who has answered 20 questions.

Joined: Jan 27, 2008
Answers
37
Questions
0
Helped
15690
Points
73

Shane67 did have the md and cd commands correct. However, your problem now is that DOS combined all your files into one when you used the copy command the first time.

Do you still have the original files you were backing up? If so, the easiest solution is to make your directory, run copy *.* c:\test\ and then delete the test.file as you won't need it anymore.

If you don't have the originals, and only have the test.file, you're in trouble. There is no automated way to split that file into the original files as DOS saved neither the filenames nor any information on where one file ended and the next began. If they're all plain text, you can type edit test.file to view it. Once in there, delete everything that isn't part of the first file, then click File and Save As and specify the first file name. Then you'll have to repeat the process for each other file that was copied into test.file. Just make sure you don't save any of them over test.file, or you'll lose the data that's in it.

If they weren't plain text, there's not really any way to break them up properly.

-John

Anonymous

Level 1:

An expert who has achieved level 1.

  • Contributor 2 Answers
  • Posted on Mar 04, 2008
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

Joined: Mar 04, 2008
Answers
2
Questions
0
Helped
277
Points
1

If you are only trying to move your data file, then create the new directory using the cd command e.g.  cd test.  Then move the file to the new directory either using the move command or the copy command eg. copy test.file c:\test\test.file
Alternatively you should try using the old text editor program in dos to load your file and then save to the directory of  your choice.   good luck
shane67

  • Anonymous Mar 04, 2008

    Nizam




    correction to prior comment.  the command to create your directory is md, not cd.  cd is the command you will use to change to that directory after you create it, eg.  'md test', then type "cd test" to enter that directory and create or move files to it.  sorry, haven't used dos since the 80's but still have some memories of how to work in it.  hope that helps.



×

Ad

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

161 views

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

ADMIN Andrew
ADMIN Andrew

Level 3 Expert

73781 Answers

ADMIN Eric
ADMIN Eric

Level 3 Expert

42220 Answers

Brad Brown

Level 3 Expert

19190 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...