HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Solution to UMSWE log files

08-29-2003, 11:30 PM#1
The Warlock
Okay, everyone here that uses UMSWE knows about the log files. A single session gan create MPQDraft log files that range in the tens of megabytes. Periodic mass deletions are needed, but those are a pain in the ***. I have a small, mostly full hard drive; I can't have 600+ MB of log files just lying around! So here's the soolution that took me all of 15 seconds to create:

1) Create a new file using Notepad.
2) Type in this (and only this)
Code:
@echo off
del "MPQDraft Patcher log*.txt"
start UMSWE3.7.exe
3) Go to Save As... At the bottom, where it says "Save as type" the type should be "All files". The file name should be whatever.bat (obviously, you can substitute anything you want for the "whatever", just make sure it ends in .bat).
4) Save it in the same folder as the UMSWE executable (I've tested this with the UMSWE in the Warcraft II folder, I'm not sure if it will work if it's in a separate folder from your game).
5) Instead of running the UMSWE3.7.exe file, run the batch file you just created. It will auto-delete any log files and then start UMSWE, thus ensuring that you never have too much of your disk space taken up at a time. You should change your desktop/Start menu shortcut to point to the batch file instead of the UMSWE3.7.exe file.

There! That's all you need. Now you don't need to open up Explorer and delete the files every few days or so. It will just do it for you. The files do not even go to the Recycle Bin! They are just gone!
08-30-2003, 06:58 PM#2
Starcraftfreak
1) You are not the first to write a batch script for deleting the logs.
2) The log problem is known since quite some time.
3) UMSWE 3.8 is out.

But nice script anyway.
08-30-2003, 10:08 PM#3
JollyOven
Have you tried asking Q for a release build of MPQDraft that supports war3x? Only the debug ones make the logfiles.
08-31-2003, 02:09 PM#4
The Warlock
Quote:
Originally posted by Starcraftfreak
1) You are not the first to write a batch script for deleting the logs.
I kind of figured that, but I wanted to post this for those here who don't know how.
Quote:
2) The log problem is known since quite some time.
Of course it is. Hence, me writing "Okay, everyone here that uses UMSWE knows about the log files."
Quote:
3) UMSWE 3.8 is out.
Yeah, but you gave it the same filename as UMSWE 3.7, remember? :D
08-31-2003, 05:59 PM#5
Starcraftfreak
Sorry, I didn't know, because Scio did this. And as developer I always have my own build of UMSWE.

@JollyOven:
Do you know that's not the easiest thing in the world to contact Quantam?
09-01-2003, 10:13 PM#6
JollyOven
It isn't? Takes me about 5 seconds to do :P

He spends several hours a day active in #smemp and #Campaigncreations on beyondirc, and idles for much of time that he isn't active.