Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
programming4us
Windows 7

Industrial-Strength File Management with Robocopy and Robocopy GUI

3/20/2011 9:50:54 PM
Dragging files between folders with Windows Explorer is fine for some tasks, but when it comes to heavy-duty file management you need a better tool. If you're willing to do a little typing in exchange for power and flexibility you can't get with Windows Explorer, get to know Robocopy.

Robocopy (the name is short for Robust File Copy) was introduced with the Windows Server 2003 Resource Kit and is included in all editions of Windows 7. Its many strengths include the ability to copy all NTFS file attributes and to mirror the contents of an entire folder hierarchy across local volumes or over a network. If you use the right combination of options, you can recover from interruptions such as network outages by resuming a copy operation from the point of failure after the connection is restored.

The Robocopy syntax takes some getting used to. If you're familiar with the standard Copy and Xcopy commands, you'll have to unlearn their syntax and get used to Robocopy's unconventional ways. The key difference is that Robocopy is designed to work with two directories (folders) at a time, and the file specification is a secondary parameter. In addition, there are dozens of options that can be specified as command-line switches. The basic syntax is as follows:

robocopy source destination [file [file]...] [options]

The source and destination parameters are specified as drive:\path or \\server\share\path. The file parameter can contain one or more literal file names, or it can use the familiar ? and * wildcards. Available options include dozens of switches that control copying, file selection, retry options, and the ability to create log files. For instance, this command copies the contents of one folder and all its subfolders from a local drive E to a shared folder on a Windows Home Server:

robocopy "E:\test" \\server\public\test\ /MIR /W:20 /R:15 /LOG: \\server\public\logs

The /MIR switch tells Robocopy you want to mirror the two folders, copying all folders (even empty ones) from the source directory and purging folders from the destination if they no longer exist on the source. The /W and /R switches set the wait and retry options; in this case, Robocopy will retry each copy up to 15 times, waiting 20 seconds between attempts. (The defaults allow 1 million retries, at 30-second intervals, allowing copy operations to complete when an open file is closed, even if hours or days have passed since the command was first launched.)

To see the full syntax, type robocopy /? at a command prompt.

Robocopy is a powerful tool, capable of moving, copying, and deleting files and folders faster than you can say "Whoops." We recommend experimenting with commands using nonessential files and folders first; when you're comfortable that you understand the effects of the syntax you're using, you can run the command against real data files.

And if you aren't keen on the idea of using a command-line tool, take heart. Microsoft engineer Derk Benisch has written a graphical front end, shown in Figure 1, that allows you to build a command by selecting check boxes instead of entering switches.

Figure 1. Download this utility to turn Robocopy's cryptic command lines into a friendlier set of check boxes.


Robocopy GUI adds more than usability to Robocopy; it also lets you create a library of commonly used copy scripts. 

Other -----------------
- Advanced File Management : Encrypting Information (part 2) - Encrypting with BitLocker and BitLocker To Go
- Advanced File Management : Encrypting Information (part 1) - Using the Encrypting File System
- Advanced File Management : Relocating Personal Data Folders
- Synchronizing Files Between Multiple Computers (part 6) - Staying in Sync with Windows Live Sync
- Synchronizing Files Between Multiple Computers (part 5) - Staying in Sync with Live Mesh
- Synchronizing Files Between Multiple Computers (part 4) - Managing Disk Space & Removing Offline Access to Files and Folders
- Synchronizing Files Between Multiple Computers (part 3) - Setting Up a Synchronization Schedule & Setting Caching Options on the Server
- Synchronizing Files Between Multiple Computers (part 2) - Working Offline & Understanding Synchronization and Resolving Sync Conflicts
- Synchronizing Files Between Multiple Computers (part 1) - Making Folders and Files Available Offline
- Advanced File Management : Recovering Lost, Damaged, and Deleted Files and Folders
 
 
Top 10 video Game
-   Minecraft Mods - MAD PACK #10 'NETHER DOOM!' with Vikkstar & Pete (Minecraft Mod - Mad Pack 2)
-   Minecraft Mods - MAD PACK #9 'KING SLIME!' with Vikkstar & Pete (Minecraft Mod - Mad Pack 2)
-   Minecraft Mods - MAD PACK #2 'LAVA LOBBERS!' with Vikkstar & Pete (Minecraft Mod - Mad Pack 2)
-   Minecraft Mods - MAD PACK #3 'OBSIDIAN LONGSWORD!' with Vikkstar & Pete (Minecraft Mod - Mad Pack 2)
-   Total War: Warhammer [PC] Demigryph Trailer
-   Minecraft | MINIONS MOVIE MOD! (Despicable Me, Minions Movie)
-   Minecraft | Crazy Craft 3.0 - Ep 3! "TITANS ATTACK"
-   Minecraft | Crazy Craft 3.0 - Ep 2! "THIEVING FROM THE CRAZIES"
-   Minecraft | MORPH HIDE AND SEEK - Minions Despicable Me Mod
-   Minecraft | Dream Craft - Star Wars Modded Survival Ep 92 "IS JOE DEAD?!"
-   Minecraft | Dream Craft - Star Wars Modded Survival Ep 93 "JEDI STRIKE BACK"
-   Minecraft | Dream Craft - Star Wars Modded Survival Ep 94 "TATOOINE PLANET DESTRUCTION"
-   Minecraft | Dream Craft - Star Wars Modded Survival Ep 95 "TATOOINE CAPTIVES"
-   Hitman [PS4/XOne/PC] Alpha Gameplay Trailer
-   Satellite Reign [PC] Release Date Trailer
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 windows Phone 7 windows Phone 8
programming4us programming4us
 
Popular keywords
HOW TO Swimlane in Visio Visio sort key Pen and Touch Creating groups in Windows Server Raid in Windows Server Exchange 2010 maintenance Exchange server mail enabled groups Debugging Tools Collaborating
programming4us programming4us
PS4 game trailer XBox One game trailer
WiiU game trailer 3ds game trailer
Trailer game
 
programming4us
Natural Miscarriage
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Game Trailer