Sam
Sam

Reputation: 15770

What does ".\" mean in a batch file?

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%

Upvotes: 3

Views: 4204

Answers (1)

Kevin Stricker
Kevin Stricker

Reputation: 17388

does .\ represent the directory you are currently in?

Yes.

What about ..\?

The parent directory

What about SET DIR=%~d0%~p0%

MS docs

Set the environment variable DIR to the drive and path of the batch file.

Upvotes: 6

Related Questions