China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-09 09:27
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] Double-clicking can run a shortcut, but from the command line it won't? View 856 Replies 2
Original Poster Posted 2008-08-06 15:48 ·  中国 上海 联通
初级用户
Credits 23
Posts 8
Joined 2008-07-24 17:34
18-year member
UID 122012
Gender Male
Status Offline
I'm using a 2003 system. For example, if I need to open a piece of software, its shortcut is on drive D and is called 111.lnk (the shortcut and the software itself are both in the same directory on D).
If I directly double-click this shortcut, it opens the software normally.
But if I enter D:\111.lnk at the command line, what pops up is the "Open With" window.
If I use the command start D:\111.lnk to open it, it also pops up the "Open With" window.
Why is this happening? I don't know whether anyone else has run into this problem.

I tried the two commands above on other computers, and both could open the software successfully. Only this computer can't.
Floor 2 Posted 2008-08-06 20:03 ·  中国 湖北 武汉 联通
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
Try cd /d to this directory, then use start followed by the shortcut's name.
Floor 3 Posted 2008-08-09 15:11 ·  中国 湖南 常德 电信
新手上路
Credits 6
Posts 5
Joined 2008-05-01 10:16
18-year member
UID 117451
Gender Male
Status Offline
Add the .LNK extension
Forum Jump: