Batch BAT Create Shortcut _dos/bat

Source: Internet
Author: User
Tags comparison table

Send a useful item-batch creates a shortcut. Not my original, here to tidy up, hope for everyone useful.

Batch process Generation Shortcuts:
1, can be directly generated:

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 the variable first:

@echo off
Set "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. View and interpretation
1, the generated shortcut is a URL link, open with Notepad, get the following content:

[Internetshortcut]
Url= "C:\BatMPlayer\BatMPlayer.bat"
iconindex=17
Iconfile=c:\windows\system32\shell32.dll

2, the following is a shortcut to explain the content:

[Internetshortcut]     Shortcut
url= "C:\BatMPlayer\BatMPlayer.bat"     ; the shortcut's program path.
iconindex=99 The order of the     icons used by the shortcut (here is the order of the icons in the system file, located in the IconFile folder below, to see the third part of the Shell32.Dll icon Resource table).
Iconfile=%systemroot%\system32\shell32.dll     The location of the shortcut icon (here is the system file path, where the icon for the common system shortcuts resides).
"%userprofile%\ desktop \batmplayer.url"    ; shortcut creation location (here is desktop), note double quotes and suffix names.

Three, Windows system Shell32.Dll icon Resource Comparison table
Windows system Shell32.Dll Icon resource comparison

Shell32.Dll Icon Resource Table 001: Default icon (no extension file) 002: Default text 003:exe file 004: Folder closed 005: Folders open 006:5.25 "5 inch disk 007:3.5" 3 inches/008: Removable Storage 009: Disk 0 10: Network hard disk 011: Network hard disk (offline) 012: Empty CD drive 013:ram disk 014: Global 015: Unknown (icon description: One on earth has a mouse) 016: My Computer 017: Printer 018: Network Places 019: Workgroup 020: View (detail: Work
"Tile" on the bar, "icons, lists, details, icons) 021: History document 022: Control Panel 023: Search (Description: A simple search magnifier) 024: Help 025: Run 026: Sleep mode 027: Popup (256 color) 028: Off (description: It's like the power off. 029: Sharing 030: Shortcut small arrow 031: I don't know (similar to shortcut arrow size Black has a small circle) 032: Recycle Bin [empty] 033: Recycle Bin [Full] 034: Network Space folder 035: Desktop 036: Control Surface Edition
(256 color) 037:{and 020 the same} view (Description: Tile, icon, list, details, icon on the toolbar) 038: Printer folder (256 colors) 039: Font folder 040: Taskbar and Start Menu 041: Audio CD 042: Do not know (icon description: And on the FTP when the Address bar icon. ) 043: I do not know (icon description: The bottom of a folder icon, the top of a computer icon) 044: Favorites 045: Login/Logoff 046: Search Folder 047:windows Automatic Update 048: Unknown (icon description: A lock) 049: Unknown (icon description: The bottom of a folder window, Top layer a blue screen computer icon) 050~053: blank icon 054: Unknown disk 133: Not known (Icon Description: Stacked blank file) 134: Search (Detailed description: Open the way there search.) 135: Search My Computer 137:{and 022 the same} control surface 138: Printers and Faxes 139: Add new Printer 140: Network printer 141: Unknown (icon description: A printer and a floppy disk) 142~144: alternative Recycle Bin [Full] (description: And 32.33 The icon is different, another type of Recycle Bin [full] style 145: Unknown (icon description: 2 text document, the bottom is a red fork document, the top layer is a good document, as if it is a good document replace damaged document meaningThink) 146: Copy file 147: File Rename 148: Unknown (icon description: A computer + a gear transfer to a folder, as if to configure the meaning of backup.) ) 151: Profile 152: Text Document 153: Batch file (256 color) 154:dll file 155:a font (sorry, I don't know the full name of a font) 156:truetype font TrueType font 157:type 1 font Type 1 Font 160:{and 025 run 161: Delete 165: File backup hard disk 166: Optical drive Error Check 167: Disk fragmentation 168: Install printer 169: Install network printer 170: Unknown (icon description: A printer and a floppy disk, a small gogo in the upper left corner) 171: Color Exchange
File 172: Shared Documents 173:{and 044 same} favorites!
174: Do not know (icon description: A folder with several colors on the folder. There is an arrow pointing, as if to choose the file color or how to. 175: Connect to 176: New network folder (256 colors) 177: Unknown (icon Description: A folder window and a gear, like a configuration folder) 178: Add a new connection-179: I do not know (icon description: The bottom of a earth, the top of a computer and host) 180: Unknown (icon Description: A display, open a lot of windows. All narrowed down to the taskbar) 181: Unknown (icon Description: A display, blank desktop display) ~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ below are the icons in Folder Options: 182: Displaying common tasks in folders 183: Using Windows traditional style folders
184: Open each folder in the same window 185: Open a different folder in a different window!
186: Click to open Item (point to select) 187: Open item by double-clicking (selected when clicked) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
191: Alternative Recycle Bin [empty] (256 colors) (description: Unlike 32.33 icons, another Recycle Bin [empty] style 192: And 191 is an icon-style recycle Bin [full] (256 colors) 193: Network folder 194: Unknown (icon description: 3 keys) 196: Fax machine 197: Install the fax machine 198: Install the network fax machine 199: network fax machine 200: Prohibit Action 210: Folder option 220: User (256 colors)
221: POWER Switch!
222:dvd Disc 223: Unknown (Icon Description: 3 layers of documents) 224: Video file 225: Audio file 226: Image file 227: Mixed media file 228: Audio CD (256 color) 229:CF Card reader 230:zip Drive
231: Do not know (icon description: Similar to the shortcut arrows down the small icon) 232:{and 231 the same} do not know (icon description: Similar to the shortcut arrows down the small icon) 233:{and 008 the same} Mobile storage 234:zip Drive (diskless) 235: My document 236: My picture 237: My Music 238: My video 239:msn 240: Canceling 241: I don't Know (icon description: My document icon + an arrow to the right), is it ... ) 242: Select 243:2 Text Document 244: Publish this file to the Web 245:{and 017 the same printer 246: Play 247: Online music Store 248: Camera 249: Slide 250: Display (Detail: Control Panel "Display", that is, desktop properties) 251: Online order printer 252: Print picture 253: Do not know (icon description: A default icon, the middle of a red Gogo) 254:{and 032 the same} Recycle Bin [empty] 255: Previous folder 256:{same as 146} copy file 257:{same as 175} Connect to 258: New network Shared folder 259: Network Setup Wizard 260: Burn files to CD 261: Burning the Software to CD 262: Keep the disc to the Recycle Bin 263: Help 264: Copy to Folder 265: E-mail 266: Copy to CD 267: Shared folder 268: Accessibility Options 269: User
Account 270: Desktop Theme 271: Add/Remove Programs 272: Printers and other Hardware 273: Network and Internet connection! 274: Option 275: Performance and Maintenance 276: Date, time, language, and Regional Options 277: Voice, voice, and Audio Devices 278: Batch 279:{and 269 same} user account 281: Magnifier 282: Voice 283: On-Screen Keyboard 284: Unknown (icon description: 2 black and white triangle Group
Square icon) 289: Help document 290: OK, start, go. 291:dvd Drive 292: Enhanced CD 293: Unknown CD 294:cd-rom CD 295:cd-r CD 296:CD-RW disc 297:dvd-ram CD 298:dvd-r CD 299:mp3 player 300: Large tape drive 301: Small MagneticWith drive 302: normal CD 303:CF card 304:dvd-rom CD 305:{and 008 same} Mobile storage 306:PC card 307:SD Card 308: Smart card 309:{and 248 same} camera 310: Mobile 311: Unknown (icon description: The bottom of a earth , top-level one printer) 312:jaz drive 313:{with 230 same} Zip drive 314:PDA 315: Scanner 316: Scanner and camera 317:DV machine 318:DVD-RW disc 319: New Folder 320:{same as 266 copy to CD 32 1:{and 022 the same} control surface version 2 322:{and 044 same} favorites 323:{and 023 the same} search (description: A simple search Magnifier) 324:{with 024 the same} help 325:{with 045 same} login/Logoff 326:{same as 020, but small Point} view (Description: Tile, icon, list, details, and icons on the toolbar 327:{is the same as 021, but a little bit} history document 328:{with 025 same} Run 329: Close 330:{and 022 same} Control Panel 331: Eject 33 7: Do not know (icon description: A magnifying glass to find something in the driver) 338:{and 200 the same} prohibit action 512:internet Explorer 1001: Balloon prompts 1002:{and 168 the same} Install printer 1003: Unknown (icon description: A host on a hook
1004:{is the same as 289} Help document 1005: Unknown (icon description: A default icon + an arrow to the right) 1006: Print the document 1007:{and 253 the same} don't know (icon description: A default icon, a red Gogo in the middle) 1008: Pause Printing 1009: Start printing 1010: Shared fax machine 1011: Alternative fax machine (detailed description: with 196 different) 8240: Alternative My Computer (detailed description: and 016 different) 16710~16721: all {and 161 the same} delete ================ ====================================================


want to be helpful to friends who want to change the icons in the system

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.