BAT Command Summary

Source: Internet
Author: User

1. Copying files

Copy Cd.dll%windir%\system32

2. Copying folders

/s copies directories and subdirectories, except for empty.

/e copies directories and subdirectories, including empty.

xcopy%dir%\template/e%desdir%\bin\template

3. Create a Folder

" %desdir%\main "

4. Delete a folder

The/s parameter indicates that the folder and its following subdirectories and files are deleted
The/q parameter indicates that no confirmation is required

RD/S/D E:\soft

5. Naming folders based on time

Set " ymd=%date:~,4%%date:~5,2%%date:~8,2% " Set desdir=e:\test_%ymd%

The build folder name is: test_20160606

6. Generate file files and write content

@echo. >%desdir%-dfile.encoding=utf-8 -cp. /test-1.0-snapshot.jar Test.client.host.server>%desdir%\service\bin\startup.bat

Startup.bat will be generated and will be Java-dfile.encoding=utf-8-CP. /test-1.0-snapshot.jar Test.client.host.Server written to the bat file

7. Get Input variables

set dir=%1%

If the input command is Start.bat E:\soft then the dir value is E:\soft

BAT Command Summary

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.