cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the command "robocopy", in safe mode, to copy from c:\xxxx to a pen drive?

-MFra-
21-Topaz I

How to use the command "robocopy", in safe mode, to copy from c:\xxxx to a pen drive?

Hello everyone,

I have a question, although this isn't,  perhaps, the page suitable for such problem . Anyway, I'll try. I want to save some folders with the  Windows command prompt, in safe mode before doing a complete system recovery. I would like to know what are the most convenient options to copy from c:\xxxx  in a pen drive an entire folder and all subfolders  , with the command "ROBOCOPY" from the command prompt? Of course, are welcome several tips about.

Thank you

F. M.

1 ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:-MFra-)

robocopy <source> <destination> /S will copy the source and all subfolders except empty ones. Changing the option to /E will include empty subfolders.

For example robocopy c:\folder1\folder2\*.* f:\folder3 /S will copy the contents of folder 2, and all subfolders, to folder3. If the name of a folder has a space in it, use quotes, for example robocopy "c:\folder 1\folder 2\*.*" "f:\folder 3" /S

View solution in original post

5 REPLIES 5
RichardJ
19-Tanzanite
(To:-MFra-)

robocopy <source> <destination> /S will copy the source and all subfolders except empty ones. Changing the option to /E will include empty subfolders.

For example robocopy c:\folder1\folder2\*.* f:\folder3 /S will copy the contents of folder 2, and all subfolders, to folder3. If the name of a folder has a space in it, use quotes, for example robocopy "c:\folder 1\folder 2\*.*" "f:\folder 3" /S

-MFra-
21-Topaz I
(To:RichardJ)

Hi Richard

it was easier to use the "old" command xcopy.

Anyway, thank you very much.

Werner_E
24-Ruby IV
(To:-MFra-)

If you are unsure and don't like to play around with robocopy's many command line switches, you may also consider using one the many freely available GUI-frontends for robocopy, like

Microsoft Robocopy GUI

YARCGUI

RobocopyMonitor

Robocopy GUI

etc.

Hi F.M.

The parameter /L is for simulate the copy, without doing nothing.

In safe mode you can't use a windows GUI, but can use some filemanagers, like volkov commander, or better (but its'n which I use) farmanager, which it's actually the best that I know for console mode. I know that farmanager can call robocopy from the panels, but never try it in safe mode, and don't know if it can works, because far calls power shell and this it is not always available.

Maybe can ask in the far forum: https://forum.farmanager.com/

Best regards and very good luck!

Alvaro.

Hi A.D.

The fact is that, on the HP's recovery panel, of one of my laptops, there are various options, which may include the backup before recovery. In the help of the backup panel, there is the button, guide to the backup, which shows the list of extensions of all files that can be saved. The extensions: mcd, xmcd, mcdx, are not present, however htm is present. So, to avoid losing files, I decided to make a copy manually. Maybe it was not necessary.

Many greetings

F. M.

Announcements
Check out the latest
Mathcad Tip
"PTC Mathcad 15 / Prime 1-6 Update."