E2 - Shortcut[shortcut]
โค้ดในช่องนี้คือการสร้างชอร์ตคัตไปยังโฟลเดอร์ต่างๆ เช่นDesktop, StartMenu เป็นต้นครับ
โดยแบ่งเป็นโฟลเดอร์หลักๆดังนี้ครับ
TaskbarTmp 
..\..\TaskbarTmp|iexplore|%SystemDrive%\Program Files\Internet Explorer\iexplore.exe||
..\..\TaskbarTmp|StartScreen|%SystemDrive%\Program Files\StartIsBack\StartScreen.exe||
..\..\TaskbarTmp|explorer|%systemroot%\explorer.exe||
โค้ดนี้จะเป็นการสร้างชอร์ตคัตไปยัง C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\TaskbarTmp
โดยใช้ ..\.. แทนC:\Users\Administrator\AppData\Roaming\Microsoft\Windows
(โค้ดนี้เป็นคำสั่งพิเศษ ซึ่งจะสร้างชอร์ตคัตเตรียมไว้สำหรับPin to Taskbar)/////////////////////////////////////////////////////////////////////////////////////////////////////////
Desktop
Desktop|Unlocker|X:\Program Files\Unlocker\Unlocker.exe||
Desktop|Google Chrome|%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe||
Desktop|Avira Control Center|X:\Program Files\Avira\Avira Free Antivirus\avcenter.exe||
Desktop|Acronis True Image Home|X:\Program Files\Acronis\TrueImage\TrueImage_starter.exe||
Desktop|PENetwork|%SystemDrive%\Program Files\PENetwork\PENetwork.exe||
Desktop|Explorer|%SystemRoot%\explorer.exe||
Desktop|Command Prompt|%SystemRoot%\system32\cmd.exe||
โค้ดนี้จะเป็นการสร้างชอร์ตคัตไปยังเดสก์ทอป ซึ่งหากท่านต้องการลบชอร์ตคัตใดๆทิ้ง
ก็สามารถลบโค้ดแถวนั้นๆทิ้งได้เลยครับ ส่วนการแก้ไขโค้ดมีหลักการดังนี้ครับ
ตัวอย่างโค้ดของโปรแกรมGoogleChromeครับDesktop|Google Chrome|%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe||
Desktop -> จะต้องเปิดด้วยคำสั่งนี้ก่อนเสมอ เพื่อระบุว่าให้สร้างชอร์ตคัตไปยังเดสก์ทอป
(1)Google Chrome -> ชื่อของชอร์ตคัตที่ต้องการ
(2)%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe ->ที่อยู่ของโปรแกรมที่ต้องการสร้างชอร์ตคัต
(3) สรุปหลักการเขียนโค้ดจะเป็นแบบนี้ครับDesktop
(1)|ชื่อชอร์ตคัต
(2)|ที่อยู่ของโปรแกรม
(3) โดยใช้
|คั่นกลาง และใช้
||ปิดท้ายคำสั่งครับ
/////////////////////////////////////////////////////////////////////////////////////////////////////////
StartMenu
.|Explorer|%SystemRoot%\explorer.exe||
.|Google Chrome|%SystemDrive%\Program Files\GoogleChrome\Application\Chrome.exe||
ใช้
. แทนโฟลเดอร์Startmenu โดยชอร์ตคัตจะถูกสร้างไว้ที่start menuด้านนอกสุด โดยไม่ได้อยู่ในโฟลเดอร์ใดๆ
(ดูรูปประกอบนะครับ) จะเห็นว่ามีexplorerกับgoogle chrome ตรงนี้ก็คือที่เราคลิกStart > AllProgramsนั่นเองครับ
/////////////////////////////////////////////////////////////////////////////////////////////////////////
StartMenu\Folder
Accessories|Sound Recorder|%SystemRoot%\system32\SoundRecorder.exe||
Accessories|Notepad2|%SystemRoot%\system32\Notepad.exe||
Accessories|WordPad|%ProgramFiles%\Windows NT\Accessories\wordpad.exe||
Accessories|Calculator|%SystemRoot%\system32\calc.exe||
Accessories|Show Desktop|%SystemRoot%\explorer.exe|%SystemRoot%\system32\shell32.dll,34|shell:::{3080F90D-D7AD-11D9-BD98-0000947B0257}
Accessories|Command Prompt|%SystemRoot%\system32\cmd.exe||
Acronis|Acronis True Image Home|X:\Program Files\Acronis\TrueImage\TrueImage_starter.exe||
AntiVirus|Avira Control Center|X:\Program Files\Avira\Avira Free Antivirus\avcenter.exe||
Computer Management\Drivers|Renew USB3|%SystemRoot%\system32\RenewUSB3.cmd|%SystemRoot%\system32\shell32.dll,-27|
Computer Management\Drivers|PnpUtil Net|%SystemRoot%\system32\cmd.exe|%SystemRoot%\system32\hdwwiz.exe|/c pnputil.exe -i -a %SystemRoot%\inf\net*.inf
Computer Management\Drivers|PnpUtil All|%SystemRoot%\system32\cmd.exe|%SystemRoot%\system32\hdwwiz.exe|/c pnputil.exe -i -a %SystemRoot%\inf\*.inf
Computer Management|Shared Folders|%SystemRoot%\system32\fsmgmt.msc|%SystemRoot%\System32\shrpubw.exe|
Computer Management|System Properties|%SystemRoot%\system32\sysdm.cpl|%SystemRoot%\System32\control.exe|
Computer Management|Regional and Language Options|%SystemRoot%\system32\intl.cpl|%SystemRoot%\system32\intl.cpl,-200|
Computer Management|Mouse|%SystemRoot%\system32\main.cpl|%SystemRoot%\system32\main.cpl,-100|
Computer Management|Internet Options|%SystemRoot%\system32\inetcpl.cpl|%SystemRoot%\system32\inetcpl.cpl,-1301|
Computer Management|Hardware Wizard|%SystemRoot%\system32\hdwwiz.exe||
Computer Management|Date and Time|%SystemRoot%\system32\timedate.cpl|%SystemRoot%\system32\control.exe|
Computer Management|Device Manager|%SystemRoot%\system32\mmc.exe|%SystemRoot%\system32\devmgr.dll,4|/b %SystemRoot%\System32\devmgmt.msc
Computer Management|Computer Management|%SystemRoot%\system32\compmgmt.msc|%SystemRoot%\system32\mycomput.dll|/s
Computer Management\Drivers|Force Install USB (HWPnP)|%SystemRoot%\system32\HwPnp.exe||-all -STORAGE\VOLUME +USB\ +USBSTOR\ /a /u /log /p /d /s /rs
Computer Management\Drivers|Force Install Devices (HWPnP)|%SystemRoot%\system32\HwPnp.exe||+all -storage\removable -storage\volume -USB\ROOT +USB\ /log /p /u /d+ /s /rs
Computer Management\Drivers|Install Devices (HWPnP)|%SystemRoot%\system32\HwPnp.exe||+all /p /d /log
File Tasks|Explorer++|X:\Program Files\Explorer++\Explorer++.exe||
File Tasks\File Unlock\Unlocker|Unlocker|X:\Program Files\Unlocker\Unlocker.exe||
File Tasks\Compression|7-Zip File Manager|X:\Program Files\7-Zip_x64\7zfm.exe||
Network|PENetwork|%SystemDrive%\Program Files\PENetwork\PENetwork.exe||
Network\Remote Desktop|Remote Desktop|%SystemRoot%\system32\mstsc.exe||
Portable|PStart|X:\Program Files\PStart.exe||
Supplementary\Office|xCHM|X:\Program Files\xCHM\xCHM.exe||
Supplementary\Graphics|MultiRes|X:\Program Files\MultiRes\MultiRes.exe||
System Tools|MountStorPE -RL|%Systemroot%\SysWOW64\MountStorPe.exe||-rl
System Tools|MountStorPE|%Systemroot%\SysWOW64\MountStorPe.exe||
System Tools|DotNet Version Detector|%SystemRoot%\Microsoft.NET\dotnet.exe||
System Tools|System Recovery|x:\sources\recovery\recenv.exe||
System Tools|ImDisk Virtual Drive Management|%SystemRoot%\System32\imdisk.cpl|%SystemRoot%\System32\imdisk.cpl,-1|
นอกเหนือจากคำเฉพาะ
..\..\ ,
Desktop ,
. ชื่อที่อยู่ด้านหน้าจะหมายถึงการสั่งให้สร้างโฟลเดอร์ในStart menuเสมอ
จากรูปตัวอย่าง (
เลข1)
Portable|PStart|X:\Program Files\PStart.exe||
Portableจะเป็นการสร้างโฟลเดอร์Portable และสร้างชอร์ตคัตPStartไว้ในโฟลเดอร์
และส่วนที่จะกล่าวถึงคือ(
เลข2)ในรูปตัวอย่าง
Network|PENetwork|%SystemDrive%\Program Files\PENetwork\PENetwork.exe||
Network\Remote Desktop|Remote Desktop|%SystemRoot%\system32\mstsc.exe||
Network|PeNetwork สร้างโฟลเดอร์Networkและสร้างชอร์ตคัตPENetworkไว้ในโฟลเดอร์
Network\Remote Desktop|Remote Desktop ใช้เครื่องหมาย
\ เพื่อให้สร้างโฟลเดอร์Remote Desktop อยู่ในโฟลเดอร์Networkอีกที
/////////////////////////////////////////////////////////////////////////////////////////////////////////
================================================================
สำหรับข้อควรระวังในการเพิ่ม/แก้ไขโค้ดในหมวดShortcutนั้น แพทช์ของโปรแกรมต้องมีอยู่จริง
ถ้าไม่งั้นโปรแกรมจะข้ามโค้ดนั้นไปครับ เช่น
Desktop|Unlocker|X:\Program Files\Unlocker\Unlocker.exe||
โค้ดนี้คือสั่งให้สร้างชอร์ตคัตโปรแกรมUnlocker.exe จากX:\Program Files\Unlocker\Unlocker.exeไปยังเดสก์ทอป
แต่หากโปรแกรมนี้ไม่มีในโฟลเดอร์ตามที่ระบุตอนบูต ชอร์ตคัตก็จะไม่ถูกสร้างครับ
================================================================