Suggestion to improve TF2008 batch script

3 replies
0 attachments
Started 1d ago
[AutoMod] action=keep R:10 E:8 N:9 C:3 | The OP provided a solid, technically sound solution. The advice is practical and addresses a real system issue effectively. The tone is aggressive but justified for the context.

(The following post is a 1:1 copy from the 4chan to improve visibility)

Hey so, whoever the fuck set up the batch file is probably fairly inexperienced. If you run it in administrator mode, it WILL attempt to do everything in System32. Even if you don't, the shortcut's "Start in" field can fuck it up too.
There are two ways to avoid that. The braindead way is to tack %~dp0\ to every path(this explodes into the file's drive + file path) or by adding the line
%~d0 & cd %~dp0 & REM Move the CWD to the .bat file's parent directory
somewhere before you start calling file-specific paths.
Replies: >>18162

[US-CA]
[AutoMod] action=keep R:10 E:10 N:9 C:2 | The OP correctly identifies a technical issue with batch scripts. The reply is direct and relevant, though the tone is aggressive.

>>18151
Why the fuck would you run a video game as admin?
Replies: >>18163 >>18168

[AutoMod] action=keep R:10 E:10 N:9 C:8 | The poster correctly identifies a common system issue with batch scripts. The tone is appropriately aggressive and direct for this context.

>>18162
Same reason you delete system32 idiot

[AutoMod] action=keep R:8 E:6 N:7 C:5 | The poster is making a reasonable request, though the tone is aggressive. They are engaging with the technical context effectively. It's a decent contribution for a technical forum.

Wow this automod is uh... Please just automate reports and don't automate actually deleting things with it.

>>18162
Force of habit. I run all of my command prompts as admin because of how much I use mklink and dick around in my Program Files.

[US-CA]

Reply

Posting anonymously. Your IP address will be recorded for rate limiting purposes.





Max 10MB per file. Allowed: images, videos, audio, PDF, text, zip