
- How to send lol replay files update#
- How to send lol replay files Patch#
- How to send lol replay files software#
- How to send lol replay files free#
- How to send lol replay files windows#
Set destination=C:\Users\USER\Documents\StarCraft II Beta\Accounts\12345\1-A1-1-12345\Replays\Multiplayerįor /f "delims=( tokens=1" %%b in ("%%~na") do ( Set source=C:\Users\USER\Documents\StarCraft II Beta\Accounts\12345\1-A1-1-12345\Replays\Unsaved :: English locales because the date parser I wrote specifically for :: NOTE! I doubt this will work properly on anything but standard US Old version of the script is below for posterity: If "%modTime%A" LSS "A" (set toks=1-2) else (set toks=2-3)įor /f "usebackq tokens=%toks% delims=%sTime% " %%a in ('%modTime%') do ( If "%modTime%A" LSS "A" (set toks=3) else (set toks=1)įor /f "usebackq tokens=%toks% delims=%sTime% " %%a in ('%modTime%') do (set AMPM=%%a) If "%modDate%A" LSS "A" (set toks=1-3) else (set toks=2-4)įor /f "usebackq skip=1 tokens=2-4 delims=(-)" %%a in (`echo:^|date`) do (įor /f "usebackq tokens=%toks% delims=%sDate% " %%d in ('%modDate%') do ( :: Uncomment next line to prompt you to hit a key before exiting so you can examine output Set output=%destination%\!baseName! !destTime!.SC2Replay
How to send lol replay files free#
REM Output time format string - feel free to adjust REM Gets rid of number in parentheses after replay nameįor /f "delims=0123456789( tokens=1" %%b in ("%%~na") do ( REM Gets the list of files to copy from the source folder, doesn't actually copy yetįor /f "usebackq tokens=*" %%a in (`xcopy "%source%" "%destination%" /L /Y /I`) do ( REM Gets date/time format information from registryįOR /F "tokens=3" %%A IN ('REG QUERY "HKEY_CURRENT_USER\Control Panel\International" /v iTime 2^>NUL') DO SET iTime=%%AįOR /F "tokens=3" %%A IN ('REG QUERY "HKEY_CURRENT_USER\Control Panel\International" /v sDate 2^>NUL') DO SET sDate=%%AįOR /F "tokens=3" %%A IN ('REG QUERY "HKEY_CURRENT_USER\Control Panel\International" /v sTime 2^>NUL') DO SET sTime=%%AįOR /F "tokens=3" %%A IN ('REG QUERY "HKEY_CURRENT_USER\Control Panel\International" /v s1159 2^>NUL') DO SET s1159=%%A Set destination=C:\Users\USER\Documents\StarCraft II\Accounts\12345\1-A1-1-12345\Replays\Multiplayer Set source=C:\Users\USER\Documents\StarCraft II\Accounts\12345\1-A1-1-12345\Replays\Unsaved\Multiplayer :: NOTE! The date parser will work for most locales but not all. :: based on the date and time they were created. :: Will not overwrite any existing files and names files uniquely :: Set "action" to "move" if you want to move the files, or :: NOTE: Set the "source" and "destination" paths for your account. :: Unsaved folder to the Multiplayer folder (or wherever you want). :: Script to automatically copy or move SC2Replay files from the Copy and paste this into Notepad and save it as a.
How to send lol replay files windows#
Next is the Windows Batch file that does all the actual work. It allows you to run the batch file invisibly (normally a command prompt window would pop up briefly). This is a VBScript file that you call with Windows Scripting Host (wscript.exe). Very complex - impossible to work with 100% of the weird locales out there, but it should work for the vast majority.įirst copy the following line into Notepad and save it as something like "invisible.vbs" in any folder, just remember where you put it for later:ĬreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

Arabic locales) for when the registry is not used. It reads date/time format information from the registry and has some exceptions (e.g.
How to send lol replay files update#
UPDATE 7-31-2010: I have updated my date parser to work with most international locales. UPDATE 8-1-2010: I've added step-by-step instructions for setting up a scheduled task for either Windows 7/Vista or Windows XP.

How to send lol replay files Patch#
UPDATE 1-11-2011: I updated the example "source" path in the script to reflect the change in patch 1.2.0 where unsaved multiplayer replays are now stored in the Unsaved\Multiplayer folder instead of just the Unsaved folder. SC2Replay files from the source folder to the destination folder, and renames it to remove any parentheses/number component after the map name and replaces that with a date-time string to make it unique. What this does is either copies or moves (your choice) any.
How to send lol replay files software#
This is a DOS Batch/VBScript solution that uses Windows Task Scheduler so no downloads or software installs are needed. I just wanted to offer an alternate solution I came up with for myself which others might find useful. #21 First post here, and I would create a new thread so as not to hijack yours, but it won't let me for 3 days.
