THE CYBERIX NETWORK

The sophisticated man's creative playground

this website is updated at 88 miles per hour

Suggestion to improve TF2008 batch script

CYBERIX · Back to threads · Report thread

Anonymous · original post · 2026-04-25 05:03:48

(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.

Report · Quote

<> · reply · 2026-04-25 16:02:23

>>18151
Why the fuck would you run a video game as admin?

Report · Quote

Anonymous · reply · 2026-04-25 16:02:59

>>18162
Same reason you delete system32 idiot

Report · Quote

Anonymous · reply · 2026-04-25 19:22:38

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.

Report · Quote

Reply to this thread

Posting requires a durable account or a TripPass. Reading remains available.

Sign in or create or attach a TripPass to post. Browsing is open.