What does pushd %~dp0 in .cmd file means? I understand that %~dp0 means it indicates a drive letter. What does pushd indicate?.
Save the current directory on a stack and change to %~dp0 which is the drive-and-path of the "0'th" command-line parameter (which is the command itself) so the destination path to be set is the drive/path of the batch file to be executed.
To return to the original path, you need a popd
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With