I updated the original post with a step by step guide for setting up the task in Windows 7/Vista, since I had a request for better instructions. If anyone has set up a task in XP that works for them please post how they did it, since it is very different.
How to: Never have to save a replay again... - Page 4
Forum Index > SC2 General |
Blahman
United States40 Posts
I updated the original post with a step by step guide for setting up the task in Windows 7/Vista, since I had a request for better instructions. If anyone has set up a task in XP that works for them please post how they did it, since it is very different. | ||
Blahman
United States40 Posts
| ||
TehForce
1072 Posts
But, i dont like having this process running everytime i start my computer, because you don't need it when you dont play SC2.. This is why i wrote this. Instead of using the invisible.vbs and the Windows Task Scheduler, i just wrote this startup.bat
It basically waits 5 Minutes, then checks if Starcraft2 is still running and executes the replayscript. If it is not running it exits. Then i just made a shortcut to it on my desktop and now the process which checks for new SC2 replays is only running when i really play SC2. You have to adjust the Path to your SC2 and copyReplay.bat of course. | ||
Rags
Sweden11 Posts
Thank you, much appreciated | ||
Kambo_Rambo
Australia79 Posts
| ||
Blahman
United States40 Posts
On August 01 2010 20:51 TehForce wrote: Thx Blahman, for your script, its really great. But, i dont like having this process running everytime i start my computer, because you don't need it when you dont play SC2.. This is why i wrote this. Instead of using the invisible.vbs and the Windows Task Scheduler, i just wrote this startup.bat
It basically waits 5 Minutes, then checks if Starcraft2 is still running and executes the replayscript. If it is not running it exits. Then i just made a shortcut to it on my desktop and now the process which checks for new SC2 replays is only running when i really play SC2. You have to adjust the Path to your SC2 and copyReplay.bat of course. Very interesting solution there. Personally I don't mind it running every 5 minutes even when I'm not playing SC2, because there will be nothing to copy and it runs and exits instantaneously, using up practically zero resources. There are probably better ways to have the script only run when SC2 is running without launching SC2 through a batch file. In fact you could just tweak the main copyReplay.bat file to only execute the main loop if SC2 is running. However when I initially wrote the script it was also meant to be used outside of SC2 for mass renaming previously saved replays. | ||
RodrigoX
United States645 Posts
Gahh, Im having more problems, Getting an error. Messaging you blah | ||
Tenrou
United States38 Posts
| ||
Chronopolis
Canada1484 Posts
I keep getting an error everytime the task runs: Script: C:\Users\MyAccount\Desktop\invisible.vbs Line: 1 Char: 1 Error: The system cannot find the file specified Code: 80070002 Source: (null) | ||
Blahman
United States40 Posts
| ||
Chronopolis
Canada1484 Posts
On August 06 2010 15:18 Blahman wrote: need more info, you can probably figure it out yourself, just read the instructions carefully make sure you have entered the arguments correctly (quotes are important). Got everything fixed up, thanks a lot for making a fix for this! | ||
NukeTheBunnys
United States1004 Posts
| ||
Blahman
United States40 Posts
still, it's an extra download and process running, and I like the way my files are named when they're saved. not sure how SC2Gears names its saves. | ||
carwashguy
United States175 Posts
TehForce, that sounds like a good idea, but I'm worried about quitting right after finishing a game and the autosave won't trigger. And like Blahman says, it doesn't seem to eat up any resources. I take it the only conditions where SC2 will obsolete this solution is by changing the folder structure (unlikely) or changing the file naming convention. | ||
Blahman
United States40 Posts
| ||
Dexerion
United States43 Posts
Great great work. Amazing. You sir, are to be commended. | ||
Blahman
United States40 Posts
| ||
Tobit
United States3 Posts
One thing I wanted was the ability to have the files automatically placed into subdirectories by the year and month. It turned out to be harder than I thought, but that's just because I don't know much of anything about scripting. I got it to work, but I was wondering if you (Blahman) have a particular site you go to for looking up scripting stuff? I think the majority of my problems arose from not understanding the difference between using the percent sign (%) around variables and using exclamation points (!). Which I still don't understand, I just used what worked. For anyone interested, here's the revised script: + Show Spoiler +
| ||
Blahman
United States40 Posts
As for batch scripting reference, there are several good sites out there. My favorite is http://www.robvanderwoude.com/batchfiles.php For most of the tricky date stuff I used: http://www.robvanderwoude.com/datetimentparse.php and http://www.robvanderwoude.com/amb_datetime.php As for "%" vs "!", this has to do with something called delayed variable expansion in FOR loops: http://www.robvanderwoude.com/variableexpansion.php | ||
sid17
1 Post
Script C:\user\etc etc Line: 1 Char: 1 Error: Type mismatch: 'Code' Code: 800A000D Source Microsoft VBScript runtime error i tried deleting the "code" line but then i got an error about subscripts. The bat file works great though and saves me tons of time ^^ | ||
| ||