Discussion Locked

Saving files from DOS

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am no t good with DOS however I want to recover DOC from DOS because I think my HD just died.
I did the C:/dir and I see the MyDocum files, how can I save those files, I dont know the commands to save ir, please help. Thanks in advance

9 replies

by still_learning

Iam assuming that you want to copy the files to diskette. From the command prompt, the command you should use is:

cd/mydocum (your document directory
copy *.doc a: (copies all .doc files to a:)

verify your results!

Hope this helps.

by timwalsh

If you have a second hard drive installed, you can copy the files there. Otherwise you are stuck with copying the files to a floppy.

Depending on the number and sizes of files, you may be able to copy them all with just one command.

At the C:> prompt, type "cd mydocumen"
The prompt should change to C:\MyDocumen>
Type "copy *.* a:" (If you have many documents, this will not work. This essentially tells DOS to copy everything in the folder "MyDocumen" to the A: drive, which may not have space for everything.)
If using wildcards (*) will not work you will have to copy each file individually or copy small groups of files. The syntax will be:
"copy file1.doc a:" or
"copy file1.doc + file2.doc + ... a:"

Hope this answers your question.

by opatzg9

Here's a quick lesson in DOS.
CD - change directory
CD\ - change directory starting at the root
DIR - give a directory listing of the current directory
PROMPT $P$G - show the current directory in the DOS prompt ($P- path) followed by the greater than sign ($G - >).
DIR *. - show files which do not have an extension (Normally subdirectories).
DIR *.doc /s - look for all files starting in the current directory and below which end in .DOC

Note the * is a wildcard which can be placed anywhere. ie. dir my*.doc would look for all .DOC files which start with MY and end with .DOC.
? - are single place wild cards. dir MY?.DOC woudl only find files with 3characters in the start of the name starting with MY and ending with .DOC.

Nowthe copy command works pretty much like the dir command allowing wildcards and such.
you have the option of either copying from the directory your in or specifying the entire path.
In this case you could either do the following:
c:
cd\mydocum
copy *.doc a:
or
copy c:\mydocum\*.doc a:
In effect the same command. If you have too many files narrow the copy with wild cards.
COPY C:\MYDOCUM\a*.doc A:
COPY C:\MYDOCUM\b*.doc A:
Note upper and lower case don't matter to DOS they're treated the same. also if this was a windows machine the actual directory is
MY DOCUMENTS and you get there with:
CD\MYDOCU~1
Since DOS doesn't see more than the first 8 characters when it hits a name longer it abbreviates with the~#. ~is the shifted chararcter next to 1 at the top of the keyboard.
Hope this helps.

by mightyyoungfai

first of all your hdd is still working, if not you couldn't even detect your hdd. simple you should follow like this
1.type dir/w on the c prompt
2.type cd mydocu~1 then enter
3.then you should see your files is there, insert your floppy disk andtype copy xxxx.doc a:\ press enter
4.you are finish then.

This discussion is closed to new replies.