4

I'm not familiar with this programming language,in PHP it's getcwd().

1 Answer 1

9

Not entirely sure I understand your question but:

The current directory is held in the pseudo-variable %CD%

Getting the directory that the Batch file is located in can be done as follows:

%~dp0 

%0 is the name of the batch file. ~dp gives you the drive and path of the specified argument.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.