The %~dp0 Variable

Reblogged from https://htipe.wordpress.com/2008/10/09/the-dp0-variable/ The %~dp0 (that’s a zero) variable when referenced within a Windows batch file will expand to the drive letter and path of that batch file. The variables %0-%9 refer to the command line parameters of the batch file. %1-%9 refer to command line arguments after the batch… Continue reading