Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the Quick creation of batch BAT

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces "how to create batch BAT quickly". In daily operation, I believe that many people have doubts about how to create batch BAT quickly. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to achieve batch BAT creation fast". Next, please follow the editor to study!

Batch generation shortcuts:

1. You can directly generate:

Echo [InternetShortcut] > > "% USERPROFILE%\ Desktop\ BatMPlayer.url" echo URL= "C:\ BatMPlayer\ BatMPlayer.bat" > > "% USERPROFILE%\ Desktop\ BatMPlayer.url" echo IconIndex=99 > > "% USERPROFILE%\ Desktop\ BatMPlayer.url" echo IconFile=%SystemRoot%\ system32\ SHELL32.dll > > "% USERPROFILE%\ Desktop\ BatMPlayer.url"

2. You can also set variables first:

@ echo offset "path=C:\ BatMPlayer\ BatMPlayer.bat" set "name= my BatMPlayer" set m = "% USERPROFILE%\ desktop\% name%.url" echo [InternetShortcut] > >% m%echo URL= "% path%" > >% m%echo IconIndex=10 > >% m%echo IconFile=C:\ windows\ system32\ shell32.dll > >% m%pause

II. Review and explanation

1. The generated shortcut is a url link, which is opened with notepad to get the following content:

[InternetShortcut] URL= "C:\ BatMPlayer\ BatMPlayer.bat" IconIndex=17IconFile=C:\ WINDOWS\ system32\ SHELL32.dll

2. The following is an explanation of the content of the shortcut:

[InternetShortcut]; shortcuts. URL= "C:\ BatMPlayer\ BatMPlayer.bat"; the program path of the shortcut. The sequence number of the icons used by the IconIndex=99; shortcut (here is the order of icons in the system file, located in the IconFile folder below, see the Shell32.Dll Icon Resource comparison Table in part 3). IconFile=%SystemRoot%\ system32\ SHELL32.dll; location of shortcut icons (here is the system file path, where icons for common system shortcuts are stored). "% USERPROFILE%\ Desktop\ BatMPlayer.url"; shortcut creation location (here is the desktop), note the double quotation marks and suffix names.

Third, Windows system Shell32.Dll icon resources comparison table

Resource comparison Table of Shell32.Dll Icon in Windows system

Shell32.Dll Icon Resource comparison Table 001: default icon (no extension file) 002: default text 003:EXE file 004: folder closed 005: folder open 006 CD 5.25 "5 inch disk 00715 3.5" 3 inch disk / 008: removable storage 009: disk 010: network hard disk 011: network hard disk (offline) 012: empty CD drive 013:Ram disk 014: I do not know (icon description: 1 There is a mouse on Earth) 016: my computer) 017: printer 018: network neighbor 019: workgroup 020: view (details: "tiling" on the toolbar, "Icon", "list", "details", Icon) 021: history document 022: control panel 023: search (description: a simple search magnifying glass) 024: help 025: run 026: sleep mode 027: pop-up (256 colors) 028: off (description: the kind that seems to turn off power) 029: share 030: shortcut small arrow 031: do not know (similar to shortcut arrow size black with a small circle) 032: recycling Station [empty] 033: recycle Bin [full] 034: cyberspace folder 035: display Desktop 036: control Panel (256 colors) 037: {same as 020} View (description: tiling on the toolbar, "Icon", "list", "details", icon) 038: printer folder (256colors) 039: font folder 040: task bar and start menu 041: audio CD042: I don't know (icon description: same as the address bar icon on Ftp. ) 043: do not know (icon description: a folder icon at the bottom, a computer icon at the top) 044: favorites 045: login / logout 046: search folder 047:Windows automatic update 048: do not know (icon description: a lock) 049: do not know (icon description: a folder window at the bottom A blue screen computer icon at the top) 050blank 053: all blank icons 054: unknown disk 133: unknown (icon description: cascading blank files) 134: search (detailed description: open mode where the search is made). ) 135: search my computer 137: {same as 022} Control Panel 138: printer and Fax 139: add New Printer 140: network Printer 141: I do not know (Icon description: a printer and a floppy disk) 142 "144: alternative Recycle Bin [full] (description: different from 32.33 icon, another Recycle Bin [full] style) 145: unknown (Icon description: 2 text documents, the bottom is a red cross document The top level is an intact document, which seems to mean an intact document to replace a damaged document) 146: copy file 147: file rename 148: I don't know (icon description: a computer + a gear is transferred to a folder, which seems to mean configuration backup. ) 151Profiles 152text documents 153batch files (256colors) 154:DLL files 155 A fonts (sorry Do not know the full name of A font) 156:TrueType Font Truetype font 157:Type 1 Font Type 1 font 160: {same as 025} run 166delete 165File backup hard disk 166CD drive error check 167disk fragment 166install printer 169install network printer 170I do not know (icon description: a printer and a floppy disk There is a small tick in the upper left corner) 171: color swap file 172: shared document 173: {same as 044} favorites! 174: I don't know (icon description: a folder with several colors on it. There is an arrow pointing to, as if to choose a file color or how) 175: connect to 176: create a new network folder (256 colors) 177: do not know (icon description: a folder window and a gear, as if to configure a folder) 178: add a new connection-179: do not know (icon description: an earth at the bottom, a computer and host at the top) 180: do not know (icon description: a monitor Many windows have been opened. All narrowed down to the taskbar) 181: I don't know (icon description: a monitor Icon in folder options: 182: show common tasks in folders 183: use Windows traditional style folders 184: open each folder in the same window 185: open different folders in different windows! 186: open items by clicking (selected when pointing) 187: open items by double clicking (selected when clicked) ~ ~ 191: alternative recycling Station [empty] (256 colors) (description: different from 32.33 icon Another Recycle Bin [empty] style 192: with 191 is an icon style Recycle Bin [full] (256 colors) 193: network folder 194: I do not know (icon description: 3 keys) 196: fax machine 197: install network fax machine 198: install network fax machine 199: network fax machine 200: prohibit action 210: folder option 220: user (256color) 221: power switch! 222:DVD CD 223: no Know (icon description: 3 cascading documents) 224: video file 225audio file 226image file 228audio CD (256color) 229:CF card reader 230:Zip driver 231: I do not know (icon description: a small downward icon similar to a shortcut arrow) 223: {same as 231} I do not know (icon description: a small downward icon similar to a shortcut arrow) Removable storage 234:Zip drive (no disk) 235: my document 237: my music 238: my video 239:Msn240: cancel 241: I don't know (icon description: my document icon + a right arrow Is it.) 242Selecting 243Plus 2 text documents 244: publish this file to Web245: {same as 017} Printer 246: play 247: online Music Store 248: camera 249: slide 250: display (detailed description: control panel version of "display", that is, desktop properties) 251: online order printer 252: print picture 253: I don't know (icon description: a default icon A red check box in the middle) 254The Recycle Bin [empty] 255The previous folder 256copy files 257: {same as 175} Connect to 258New Network shared folder 259: network installation Wizard 260Burn the software to CD261: burn the software to CD262: drop the CD to the Recycle Bin 263: help 264: copy to folder 265: email 266: copy to CD267: shared folder 268: accessibility option 269: user account 277: desktop topic 271: add / remove programs 272: printers and other hardware 273: network and Internet connections! 274: option 275: performance and maintenance Time, language and region options 277: sound, voice and audio equipment 278: batch 279: {same as 269} user account 281: magnifying glass 282: voice 283: screen keyboard 284: I don't know (icon description: 2 black-and-white triangle square icons) 289: help document 290: OK, start, Go. 291:DVD drive 292: enhanced CD293: unknown CD294:CD-ROM CD 295:CD-R CD 296:CD-RW CD 297:DVD-RAM CD 299:MP3 player 300: large tape drive 301: small tape drive 302: ordinary CD303: CF card 304:DVD-ROM CD 305: {same as 008} removable storage 306: PC card 307: SD card 308: smart card 309: {same as 248} Camera 310: cell phone 311: I don't know (icon description: an earth on the ground floor A printer at the top level) 312:JAZ drive 313,316: scanners and cameras 317: DV 318:DVD-RW CD 319: new folder 313: {same as 266} copy to CD321: control panel 2322: 2322: {same as 2322} favorites 323: {same as 023} search (description: a simple search magnification Mirror) 324: {same as 024} help 325: {same as 045} login / logout 326: {same as 020 Only smaller} View (description: "Tile", "Icon", "list", "details", icon on the toolbar) 327: {same as 021 But smaller} History document 328: {same as 025} run 329: close 330: {same as 022} Control Panel 331: pop up 337: I don't know (icon description: a magnifying glass is looking for something inside the driver) 338: {same as 200} disable action 512:Internet Explorer1001: balloon Tip 1002: {same as 168install Printer 1003: I do not know (icon description: a master There is a tick on the machine) 1004: {same as 289} help document 1005: do not know (icon description: a default icon + a right arrow) 1006: print document 1007: {same as 253} do not know (icon description: a default icon The middle of a red check box) 1008: pause printing 1009: start printing 1010: shared fax machine 1011: alternative fax machine (detailed description: different from 8240) 8240: alternative my computer (detailed description: different from 8240) 1671016721: all {with 161the same} delete = this, on the "how to achieve batch BAT to create fast" learning is over, I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report