JSI Tip 3855. How do I determine the path that a batch file is run from?

In tip 0494, I described the parsing of batch parameters.

To parse the path of the batch file, use:

%~dp0




Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish