中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-24 08:36
47,812 topics / 349,917 posts / today 0 new / 48,274 members
DOS批处理 & 脚本技术(批处理室) » How to create a shortcut for a certain software using cmd?
Printable Version  2,812 / 8
Floor1 kaidashi01 Posted 2006-05-10 17:46
初级用户 Posts 38 Credits 108
How to create a shortcut using commands in Windows XP?
Floor2 Michael Posted 2006-05-10 17:55
钻石会员 Posts 3,041 Credits 10,056
Internet shortcuts are in text format, you can refer to it.


───────────────── Moderator's Note ─────────────────
For the implementation of this solution, there are the following examples. Please refer to for details.
Example 1:


Example 2:

How to create a shortcut with batch processing?
http://www.cn-dos.net/forum/viewthread.php?tid=20183
───────────────── Moderator's Note ─────────────────


[ Last edited by willsort on 2006-5-11 at 17:46 ]
Floor3 tigerpower Posted 2006-05-10 20:09
中级用户 Posts 99 Credits 377
There is no command in Windows XP specifically for doing this. You can use other tools.
1. There is a command called shortcut.exe in Windows 95 or Nt 4.0 Resource Kit. (Recommended)
2. Third - party Shortcut.exe
3. Use vbs
-------------------------------------------------------------------------------------------
Dim WSHShell, fs
Set WSHShell = WScript.CreateObject("WScript.Shell")
Set fs = WScript.CreateObject("Scripting.FileSystemObject")
Function MakeDesktopShortcut( name, target )
Dim Shortcut,DesktopPath,StartupPath
DesktopPath = WSHShell.SpecialFolders("Desktop")
Set Shortcut = WSHShell.CreateShortcut(DesktopPath & "\" & name & ".lnk")
Shortcut.TargetPath = target
StartupPath = fs.GetParentFolderName( target )
If fs.FolderExists( StartupPath ) then
Shortcut.WorkingDirectory = StartupPath
End If
Shortcut.Save
End Function

MakeDesktopShortcut "Shortcut to Notepad", "C:\Windows\Notepad.exe"
--------------------------------------------------------------------------------------------
Floor4 3742668 Posted 2006-05-10 20:43
荣誉版主 Posts 718 Credits 2,013
You can refer to (url=http://www.cn-dos.net/forum/viewthread.php?tid=20183&fpage=1&highlight=%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F%2B3742668) or refer to the vbs method upstairs, and give a comment:
Floor5 electronixtar Posted 2006-05-10 22:24
铂金会员 Posts 2,672 Credits 7,493
You can try this under XP:



The system will prompt to create a shortcut under C:\

[ Last edited by electronixtar on 2006-5-10 at 22:32 ]
Floor6 dst1213 Posted 2006-07-24 19:39
新手上路 Posts 1 Credits 2
How to create a shortcut to the "c:\setups" folder in sendto and add it to the right-click "Send to"?
Floor7 hpwsb Posted 2006-12-19 20:26
初级用户 Posts 16 Credits 31
Small tip, maybe it will help me a lot in the future
Floor8 eech Posted 2006-12-20 08:03
高级用户 Posts 346 Credits 906
Originally posted by dst1213 at 2006-7-24 19:39:
How to create a shortcut to the "c:\setups" folder in sendto and add it to the right-click "Send To"?

Just put it in that folder
Floor9 lovehack2006 Posted 2006-12-20 08:11
初级用户 Posts 64 Credits 135
Bump
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023