SOURCE http://jingyan.baidu.com/article/22a299b51e7ad89e19376ad5.htmlFor computer veteran, in the process of using Windows system, often need to enter some commands in the CMD window to operate. But if each time is in the CMD window with the CD
SOURCE http://zhidao.baidu.com/question/1510889184474081700.html?qq-pf-to=pcqq.c2cRun python under Windows cmd, need to set environment variables, no environment variables can not run Python under CMD, now assume that Python is installed in the
I. Preface
The default directory of CMD is always the current user directory, and then a large CD command is used to enter the working directory. Fortunately, we can enter the specified directory through the batch processing file, which is much
@ Echo offEcho current drive letter: % ~ D0Echo current drive letter and Path: % ~ Dp0Echo full path of current batch processing: % ~ F0Echo short file name format of the current drive letter and Path: % ~ Sdp0Echo current cmd default directory: %
Batch Bat command--get current drive letter and current directory and parent directoryBatch command gets current drive letter and current directory%~D0 is the current drive letter%cd% is the current directoryCan print test with echo%cd%The following
Batch Bat command--get current drive letter and current directory and parent directoryBatch command gets current drive letter and current directory%~D0 is the current drive letter%cd% is the current directoryCan print test with echo%cd%The following
About FIREWALLDAs the kernel of the management software Firewall-cmd, by using this software to indirectly manage the Linux kernel open and close, and so on, while the Firewall-cmd software itself supports firewall-cmd (command) firewall-config
Batch command gets the current letter and current directory
%~D0 is the current disk character%cd% is the current directory
You can print the test with Echo%cd%
The following example is the command line that compiles a program written by Visual
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.