Efficient Series: Bat Generate folder directory & Toss EXE and icon mates

Source: Internet
Author: User
Tags new set

Sometimes we need to create a new set of folder directories, such as the Project management directory

The approximate list is as follows:

├─01. Project management │├─01. │├─02. Planning document │├─03. Management monitoring │├─04. Configuration Management │├─05. Quality assurance │├─06. Acceptance documentation │├─07. Project report │├─08. Review report │├─09. Change Management │├─ 10. Knot document │├─11. │└─12. Other documentation ├─02. Requirements Documentation │├─01. User Requirements Specification │└─02. Design documentation ├─03. Overview design Documentation │├─01. Detailed design documentation │├─02. Database Design Documentation ├─04. Test document │├─01. Test Plan │├─02. Test case │└─03. Test execution ├─05. Publish document ├─06. Process Specification └─07. Project information ├─01. Training materials ├─02. Learning materials └─03. Common Tools

We can use the bat script to generate;

New Buildprojectlist.bat

REM MAKE BY *** ON 2016-9-14@ECHO OFFSET DIR=XXX Project Management directory (please note renaming and uploading) MD  "% dir% "md "%dir%\01. Project Management "md "%dir%\01. Project management \01. Document "md "%dir%\01. Project management \02. Planning document "md "%dir%\01. Project management \03. Management monitoring "md "%dir%\01. Project management \04. Configuration Management "md "%dir%\01. Project management \05. Quality assurance "md "%dir%\01. Project management \06. Acceptance Document "MD   "%dir%\01. Project management \07. Project Report" md  "%dir%\01. Project management \08. Review report" md  "%dir%\01. Project management \09. Change Management" md  "%dir%\01. Project management \10. "md "%dir%\01. Project management \11. "md "%dir%\01. Project Management \12. Other documents "md "%dir%\02. Requirements document "md "% dir%\02. Requirements document \01. User Requirements Manual "md "%dir%\02. Requirements documentation \02. Requirements Specification "md "%dir%\03. Design document md . Overview design Document "md "%dir%\03. Design document \02. Detailed design document "md "%dir%\03. Design document \03. Database design Document "md "%dir%\04. Test Document "md "%dir %\04. Test document \01. Test Plan "md "%dir%\04. Test document \02. Test Case "md "%dir%\04. Test document \03. Test Execution "md "%dir%\05. Publish Document "MD   "%dir%\06. Process Specification" md  "%dir%\07. Project information" md  "%dir%\07. Project information \01. Training materials   md %dir%\07. Project Information \02. Learning materials "md "%dir%\07. Project information3. Common Tools " 

is not very simple, in any directory double-click Run bat on the line 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0058.gif "alt=" J_0058.gif "/>


*******************************************************************************************

Next is a toss-up link ...

is not the above bat a bit low, we will wrap it as EXE and add icon, in the process we will talk about how to avoid being found to be from bat to 650) this.width=650; "Src=" http://img.baidu.com/hi/jx2 /j_0066.gif "alt=" J_0066.gif "/>

*******************************************************************************************

Preparatory work:

Icon+vbs+bat placed under the same folder and installed WinRAR

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/87/3F/wKioL1fY9p_hBHOtAAAsHoyBIUI867.jpg-wh_500x0-wm_3 -wmp_4-s_885930064.jpg "title=" z.jpg "alt=" Wkiol1fy9p_hbhotaaashoybiui867.jpg-wh_50 "/>

ICO can be obtained from the network (http://www.easyicon.net/1113660-Outline_Project_icon.html, must ico file)

VBS source code is as follows

Set shell = WScript.CreateObject ("Wscript.Shell") A = Shell.run ("Buildprojectlist.bat", 0)

1, select all 3 files, right click "Add to Compressed file"

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/87/41/wKioL1fZDFbSROOXAAB1iQs9ljw685.jpg-wh_500x0-wm_3 -wmp_4-s_2361255180.jpg "style=" Float:none; "title=" z2.jpg "alt=" Wkiol1fzdfbsrooxaab1iqs9ljw685.jpg-wh_50 "/>

2, tick create self-extracting format compressed file, file name can be customized

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/87/44/wKiom1fZDFfCsINKAADqRo6XQNM404.jpg-wh_500x0-wm_3 -wmp_4-s_1291053260.jpg "style=" Float:none; "title=" z3.jpg "alt=" Wkiom1fzdffcsinkaadqro6xqnm404.jpg-wh_50 "/>

3, click "Advanced"--"self-extracting option"

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/87/44/wKiom1fZDFfxIeeHAADEvfgXx2s924.jpg-wh_500x0-wm_3 -wmp_4-s_2274718417.jpg "style=" Float:none; "title=" z4.jpg "alt=" Wkiom1fzdffxieehaadevfgxx2s924.jpg-wh_50 "/>

4. Click "Settings" tab to enter "1.vbs" after extraction

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/87/41/wKioL1fZDFjBySPmAAB6S5uMMpA955.jpg-wh_500x0-wm_3 -wmp_4-s_721702266.jpg "style=" Float:none; "title=" z5.jpg "alt=" Wkiol1fzdfjbyspmaab6s5ummpa955.jpg-wh_50 "/>

5, "Text and Icon" tab, self-extracting icon input "1.ico"

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/87/41/wKioL1fZDFjiVH_oAAC0Rz-wxdM246.jpg-wh_500x0-wm_3 -wmp_4-s_1215540628.jpg "style=" Float:none; "title=" z6.jpg "alt=" Wkiol1fzdfjivh_oaac0rz-wxdm246.jpg-wh_50 "/>

6, click "OK"--"OK", WinRAR will automatically generate a BuildProjectList.exe file (the specific appearance and icon see the following image)


We will copy EXE to the new directory, double-click to run, pop up the following prompt:

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/87/41/wKioL1fZDFmwG1uwAACyjO38_8E608.jpg-wh_500x0-wm_3 -wmp_4-s_4130231297.jpg "style=" Float:none; "title=" z9.jpg "alt=" Wkiol1fzdfmwg1uwaacyjo38_8e608.jpg-wh_50 "/>

It will be found here from the WinRAR, and it will explain how to solve the pit.

Click "Install", we also implemented the creation of a new project management directory

。。。

But the problem comes, bat and other source files are restored, what the fuck, this does not telltale 650) this.width=650; "Src=" http://img.baidu.com/hi/jx2/j_0065. GIF "alt=" J_0065.gif "/>

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/87/44/wKiom1fZDFmyTGh0AABPWLRWRoc046.jpg-wh_500x0-wm_3 -wmp_4-s_3261878079.jpg "style=" Float:none; "title=" z10.jpg "alt=" Wkiom1fzdfmytgh0aabpwlrwroc046.jpg-wh_50 "/>

• Methods for not displaying source files

You can add the following delete command at the end of the Buildprojectlist.bat source code:

Del Buildprojectlist.bat 1.ico 1.vbs


• Reject the method that is found WinRAR , in the "self-extracting options" in the "Mode" tab--"Quiet mode" check "Hide All"

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/87/44/wKiom1fZDFiT4OIRAACMFsOCsaY263.jpg-wh_500x0-wm_3 -wmp_4-s_1593519688.jpg "title=" z7.jpg "style=" Float:none; "alt=" Wkiom1fzdfit4oiraacmfsocsay263.jpg-wh_50 "/>


After completing the above 2, we re-created the self-extracting file and generated the BuildProjectList.exe

Running in the new directory, we are pleased to find that this time there is no source files, do not display any winrar information, directly generated directory, a success!

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/87/41/wKioL1fZDFqRU-l-AAAyIQ1pj8I906.jpg-wh_500x0-wm_3 -wmp_4-s_2256901847.jpg "style=" Float:none; "title=" z11.jpg "alt=" Wkiol1fzdfqru-l-aaayiq1pj8i906.jpg-wh_50 "/>


Finish

This article is from the "Seoul and the same Sorrow" blog, please be sure to keep this source http://mannerwang.blog.51cto.com/12009183/1852792

Efficient Series: Bat Generate folder directory & Toss EXE and icon mates

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.