On January 29 2011 08:08 Krissam wrote:
Well, looks good, but i still believe "my" method is better for 3 reasons:
1: files are only stored 1 place
2: it doesn't open windows
3: its instantanious
edit: posted before i was done typing, damn phone
Show nested quote +
On January 29 2011 07:46 prayanavita wrote:
You can setup a two-way sync using robocopy by running the following two commands:
start "Copy from SC2 folder" /MIN robocopy "C:\Users\your_user_name\Documents\StarCraft II\Accounts\your_nonsensical_sc2_number\your_other_nonsensical_sc2_number\Replays" "e:\replays" /COPY:DAT /E /ZB /R:1 /W:2 /XO /MON:1 /MOT:1
start "Copy to SC2 folder" /MIN robocopy "e:\replays" "C:\Users\your_user_name\Documents\StarCraft II\Accounts\your_nonsensical_sc2_number\your_other_nonsensical_sc2_number\Replays" /COPY:DAT /E /ZB /R:1 /W:2 /XO /MON:1 /MOT:1
This will open two minimized windows which synchronize every new file that's added to either of the folders. Synchronization happens every minute and using this method it will be running as a minimized command prompt which outputs the changes it makes.
Robocopy is a cp[y tool available in both Vista and Windows 7 and can be downloaded for Windows XP.
On January 27 2011 01:28 Krissam wrote:
I thought about this as well, I did however not like it due to the fact it's only a one way sync.
On January 26 2011 16:27 Yarhj wrote:
If you don't like symlinks for whatever reason, you can always just set up an automated task to copy any new replays from the sc2 directories into your dropbox. You'll have to be content with your dropbox being slightly out of sync with your actual replay directory, but that's never been an issue for me.
Directions:
1. Create a file called "copyReplays.bat"
2. Open it with your favorite text editor. If you want to be a baller use a hex editor and type in the ascii codes manually. Or not. Whatever.
3. Use xcopy to sync any new replays to your dropbox. Here's the syntax:
Xcopy info:
+ Show Spoiler +
4. Schedule a task to automatically execute this at some point in the day. Directions for Windows 7 below:
+ Show Spoiler +
So there you have it -- replay syncing for people who hate symlinks.
If you don't like symlinks for whatever reason, you can always just set up an automated task to copy any new replays from the sc2 directories into your dropbox. You'll have to be content with your dropbox being slightly out of sync with your actual replay directory, but that's never been an issue for me.
Directions:
1. Create a file called "copyReplays.bat"
2. Open it with your favorite text editor. If you want to be a baller use a hex editor and type in the ascii codes manually. Or not. Whatever.
3. Use xcopy to sync any new replays to your dropbox. Here's the syntax:
xcopy "C:\Users\your_user_name\Documents\StarCraft II\Accounts\your_nonsensical_sc2_number\your_other_nonsensical_sc2_number\Replays" "E:\Data\My Dropbox\Starcraft\whatever_the_hell_you_want" /s /y /q /d
Xcopy info:
+ Show Spoiler +
xcopy is a windows/dos copy command with some extra functionality. In this case we're telling it to copy directories and subdirectories (/s), to not bother us with prompts asking us if we're sure (/y), to not tell us the name of EVERY file we're copying (/q), and to only copy files if they have a newer timestamp than their counterpart in the destination directory (/d).
4. Schedule a task to automatically execute this at some point in the day. Directions for Windows 7 below:
+ Show Spoiler +
Control Panel > System and Security > Administrative Tools > Schedule Tasks
Within the task scheduler, you then do:
Actions > Create Task
Give it a name, a description, and under the Actions tab select "New," tell it to "Start a Program," and give it the address of your copyReplays.bat file from step 1.
Under Triggers select "New" and tell it to run daily.
Under Conditions make sure you don't have "Wake the computer to run this task" selected, unless you like your computer surging to life in the middle of the night and freaking you out.
Suggestion: Set the task to run at some time you'll probably be asleep, like 4am, but go to Settings and tell it to run the task as soon as possible after a scheduled start is missed. Now the first time you turn your computer on, your replays will be automatically synced.
Within the task scheduler, you then do:
Actions > Create Task
Give it a name, a description, and under the Actions tab select "New," tell it to "Start a Program," and give it the address of your copyReplays.bat file from step 1.
Under Triggers select "New" and tell it to run daily.
Under Conditions make sure you don't have "Wake the computer to run this task" selected, unless you like your computer surging to life in the middle of the night and freaking you out.
Suggestion: Set the task to run at some time you'll probably be asleep, like 4am, but go to Settings and tell it to run the task as soon as possible after a scheduled start is missed. Now the first time you turn your computer on, your replays will be automatically synced.
So there you have it -- replay syncing for people who hate symlinks.
I thought about this as well, I did however not like it due to the fact it's only a one way sync.
You can setup a two-way sync using robocopy by running the following two commands:
start "Copy from SC2 folder" /MIN robocopy "C:\Users\your_user_name\Documents\StarCraft II\Accounts\your_nonsensical_sc2_number\your_other_nonsensical_sc2_number\Replays" "e:\replays" /COPY:DAT /E /ZB /R:1 /W:2 /XO /MON:1 /MOT:1
start "Copy to SC2 folder" /MIN robocopy "e:\replays" "C:\Users\your_user_name\Documents\StarCraft II\Accounts\your_nonsensical_sc2_number\your_other_nonsensical_sc2_number\Replays" /COPY:DAT /E /ZB /R:1 /W:2 /XO /MON:1 /MOT:1
This will open two minimized windows which synchronize every new file that's added to either of the folders. Synchronization happens every minute and using this method it will be running as a minimized command prompt which outputs the changes it makes.
Robocopy is a cp[y tool available in both Vista and Windows 7 and can be downloaded for Windows XP.
Well, looks good, but i still believe "my" method is better for 3 reasons:
1: files are only stored 1 place
2: it doesn't open windows
3: its instantanious
edit: posted before i was done typing, damn phone
Oh yes, I definitively agree with you. Your method is by far the most elegant solution for the problem. Mine was just an evolution of the xcopy method posted, as it was noted that it was one-way synchronization. Just added it in case it would help someone out.