1.

Solve : DOS: copying commands?

Answer»

Hi there,

I have to format the C: drive to install a fresh copy of Xp. However, there are two folders and its content from drive C I´d like to copy to the destination D:\whatever; and those are the "Documents and Settings" and "Program files" folders. What are the commands to do this? Caution: I need the whole content from them.

Thanks!
How about .....

xcopy "c:\documents and settings\*.*" "d:\whatever\" /s /h /k

xcopy "c:\program files\*.*" "d:\whatever\" /s /h /k

You do of course realize by copying back "program files" after reinstalling your OS the programs will not be installed and if you copy over new installations you may corrupt them? (Assuming that was your plan)Hi!
I am back. As usually, I tried to be very exact when writing commands. Unfortunately, Recovery Console refuses the commands you suggested. After "xcopy" I got "The Command is not recognized" bla, bla. Its unsupported, I guess. Then I tried only with "copy" and got, "The Parameter is not valid...".

Solution? I really need to realize this task...
Thanks

I believe you forgot to mention that you were running under "Recovery Console".

Using copy the parameters would be invalid, they are totally different on the copy commmand. There is no /s switch in copy (to copy sub directories).

You'll need to create the directories and subdirectories you need on the D drive and the copy the contents of these directories one directory at a time.Yeah, I realized that, too. As you can see I am a beginner here. Anyway, my plan was just to preserve certain info from those 2 folders but I don´t know yet where exactly this is, I have to find it later...

I dont think I really understand your advice. What do you mean by "...and the copy the contents of these directories one directory at a time". After creating directories on D, how do I copy the content of those two folder from drive C which I´ve mentioned EARLIER? What is the whole procedure? I need examples.
Thankscopy c:\...\*.* d:\...\

where the c folder name and the d folder name match exactly. If there are spaces in the folder names make sure you enclose the whole thing in quotes. The *.* means to copy all files

For example......
copy "C:\Documents and Settings\Administrator\My Documents\My Pictures\*.*" "D:\Documents and Settings\Administrator\My Documents\My Pictures"

Remember you will have to do all folders and subfolders INDIVIDUALLY. I am assuming from this thread that you are totally unable to get into Windows, even in safe mode, where it would be much easier to do this copy.

Good CONCLUSION. The story? Here it goes:
After I scaned my friend´s PC with AvastPro I got 91 fu**** small scale horses and viruses. During boot scan I moved infected several reg & system files to the carantine (hoping everythings gonna be o.k. DUE to the fact a hadn´t had the guts to delete those files...). Yeah, I know now, its not healthy to deal with infected files through the boot scan. And after that....well, you discovered it already. Then tried to recover my instalation with Xp cd....at chkdsk operation it freezed to dead at 50% and automaticly started to delete files...then copying fresh one...you know the rest. The only solution according to some forums moderators advices was to do this copying thing.

I really appreciate for the help! Keep in touch...

Quote

copy c:\...\*.* d:\...\

where the c folder name and the d folder name match exactly. If there are spaces in the folder names make sure you enclose the whole thing in quotes. The *.* means to copy all files

For example......
copy "C:\Documents and Settings\Administrator\My Documents\My Pictures\*.*" "D:\Documents and Settings\Administrator\My Documents\My Pictures"

Remember you will have to do all folders and subfolders individually. I am assuming from this thread that you are totally unable to get into Windows, even in safe mode, where it would be much easier to do this copy.



I was just looking in the folders and writing down paths for creating directories on drive D, and have finally started with MKDIR command but all I was getting was "Access is denied". What should I do?


Discussion

No Comment Found