Suggestion to improve TF2008 batch script
(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.
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]
Same reason you delete system32 idiot
Wow this automod is uh... Please just automate reports and don't automate actually deleting things with it.
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.
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]