Skip to content

Ease consistent usage of Microsoft's Robocopy (Robust File Copy) for mobile workers

Notifications You must be signed in to change notification settings

mackaaij/robocopy-shortcuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robocopy Shortcuts

AutoIt script for mobile workers to bring along files from the network for offline usage. Concerns a mirror from the network, so no sync back.

How it works in general

Microsoft's Robocopy (Robust File Copy) does the hard work. This script reads parameters from an .ini file, applies some hard coded ones and displays progress for end users.

In the .ini one can configure sub folders to copy.

If you mirrored a sub folder and change your mind, Robocopy will not remove it locally as it still exists on the network. For this, you can either rename the network folder, start over or maintain and run "Network Mirror cleanup.bat" locally.

Setup Robocopy Shortcuts

RobocopyShortcuts.exe should be started with at least one parameter, pointing towards the .ini file containing the configuration.

A Windows Shortcut could be something like: "\server\share\applicaties\RobocopyShortcuts\RobocopyShortcuts.exe" "\server\share\userhome\RobocopyShortcuts.ini"

Robocopy Shortcuts daily usage

Robocopy Shortcuts checks for each shortcut whether the end user can access the folders to be mirrored and whether the folders still exist.

Robocopy Shortcuts shows a progress bar to the end user. It increases per block in the .ini file (so not the amount of files or bytes to be mirrored).

A log file is kept in %temp% map. Robocopy will be started with parameters /S /PURGE /ZB /NP /R:0 /W:0 /LOG+:<name of the logfile determined from .ini filename>. If something went wrong, you'll see an error showing Robocopy's error level.

After mirroring, files are flagged as read only to prevent end users from making changes by mistake. Robocopy's parameter /A+:R isn't sufficient here at it would only apply to newly copied files.

About

Ease consistent usage of Microsoft's Robocopy (Robust File Copy) for mobile workers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published