. Bat batch processing script allows the CMD command line prompt CD to the working directory ()

Source: Internet
Author: User

Open cmd, check the default location (directory) of the command line prompt, enter the directory, create a file with notepad ++, and enter

@ Echo off
Rem indicates that the row is a comment.
Rem enters the drive F. You need to switch the drive letter before entering the directory on the drive.
F:
CD \ myworkspace \
Echo job is done

Save the file and name it GTD. BAT as an executable batch script.

Then execute the script (as shown below) at the command line prompt of CMD ):

GTD. bat

The command line prompt then enters the directory F:/myworkspace/

 

From: http://www.cnblogs.com/jjliu/archive/2011/11/02/2233570.html

 

. Bat batch processing script allows the CMD command line prompt CD to the working directory ()

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.