![]() If (tab.right) cmd.RunCommand('Go SWAP') Ĭmd.RunCommand('Delete FILE="' dstPath '\\*.txt" QUIET') #FSU DROPBOX INSTRUCTIONS FREE#Var dstPath = mirrorPath '\\' srcLabel Ĭmd.RunCommand('CreateFolder NAME="' dstPath '"') Ĭmd.RunCommand('SetAttr FILE="' dstPath '" META "usercomment:' srcFree ' GB free / ' srcTotal ' GB total"') Ĭmd.RunCommand('Go PATH="' srcPath '" DUALPATH="' dstPath '"') Var srcTotal = Math.round(srcDrive.TotalSize / oneGB) Var srcFree = Math.round(srcDrive.FreeSpace / oneGB) Var mirrorPath = fsu.Resolve('/dropbox\\Mirror') // Change here as needed use double backslashesĭlg.Request('Please select a drive!', 'OK') ĭlg.Request('Please do not select the mirror drive!', 'OK') Var wsh = new ActiveXObject('WScript.Shell') Var fso = new ActiveXObject('Scripting.FileSystemObject') - Destination path gets space info as comment : Use this script, if you only want to mirror a few files and folders. Any future run of the script will only add/change/remove the files that are affected, thus keeping the number of files to be synced small. In my experience, Dropbox works really well even with big mirrors. If you are into scripting, you might find the parts that collect the drive info interesting. ![]() The core functionality is in just one line, the rest is simply putting together the parameters. The script uses the Windows system tool Robocopy.exe. The mirror also contains some info files regarding the drive's space.Ī mirror like this is most useful as a catalog for external drives, but also works well as a test case for copy and rename buttons (as long as they don't use metadata which is absent). All files are empty and have a size of zero. The mirror sits in the default location /dropbox\Mirror and consists of the drive label as top folder and all files and folders below it. This script creates a lightweight directory mirror of the active drive. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |