Quantcast
Channel: What does %~d0 mean in a Windows batch file? - Stack Overflow
Viewing all articles
Browse latest Browse all 10

What does %~d0 mean in a Windows batch file?

$
0
0

I'm looking at a batch file which defines the following variables:

set _SCRIPT_DRIVE=%~d0set _SCRIPT_PATH=%~p0
  • What do %~d0 or %~p0 actually mean?
  • Is there a set of well-known values for things like current directory, drive, parameters to a script?
  • Are there any other similar shortcuts I could use?

Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>