mirror of
https://github.com/arkenfox/user.js.git
synced 2025-05-12 11:47:11 +02:00
change working dir to script dir
The working dir doesn't necessarily match the script's path, depending on how the script is called. All relative paths and conditional statements using EXIST will fail whenever the working dir is not the script's own location. This fixes that.
This commit is contained in:
parent
3739dae41f
commit
647f83a021
2 changed files with 5 additions and 2 deletions
|
@ -7,6 +7,7 @@ REM ## version: 4.6
|
|||
REM ## instructions: https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.3-Updater-Scripts
|
||||
|
||||
VERIFY ON
|
||||
CD /D "%~dp0"
|
||||
SET _myname=%~n0
|
||||
SET _myparams=%*
|
||||
:parse
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue