Suggestion to improve TF2008 batch script

0 replies
0 attachments
Started 5h 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.

[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