This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12348|Reply: 0

CMD gets the absolute path to the current directory

[Copy link]
Posted on 2021-4-15 09:18:59 | | | |
echo current disk number: %~d0
echo current drive number and path: %~dp0
echo current batch full path: %~f0
The short file name format of the current drive letter and path of echo is: %~sdp0
echo current CMD default directory: %cd%
echo directory with spaces can also be added to "" to avoid finding the path
echo current drive: "%~d0"
echo current drive letter and path: "%~dp0"
echo current batch full path: "%~f0"
echo Short filename format for current drive letter and path: "%~sdp0"
echo current CMD default directory: "%cd%"







Previous:NuGet clears the cache
Next:.NET/C# operations Redis unordered collections
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com