In the context of The directory where your SQL scripts are. Defaults to .\ does .\ represent the directory you are currently in?
What about ..\?
What about SET DIR=%~d0%~p0%
In the context of The directory where your SQL scripts are. Defaults to .\ does .\ represent the directory you are currently in?
What about ..\?
What about SET DIR=%~d0%~p0%
 
    
    does .\ represent the directory you are currently in?
Yes.
What about ..\?
The parent directory
What about
SET DIR=%~d0%~p0%
Set the environment variable DIR to the drive and path of the batch file.
