Thursday, December 29, 2022

How to get the path to the directory where the cmd script was launched from?

To get the path to the directory where the batch file was run from, use the following command in the script text: "@echo %~dp0"

No comments:

Post a Comment