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-13 03:04
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Question about batch files View 638 Replies 2
Original Poster Posted 2003-11-14 00:00 ·  中国 安徽 合肥 联通
初级用户
Credits 113
Posts 3
Joined 2003-11-14 00:00
22-year member
UID 12815
Gender Male
Status Offline
How do I assign a hotkey to a batch file in Win98?
I just created a batch file on the desktop and set a hotkey for it, but the hotkey simply doesn't work, depressing.
Also, after running a batch file in Win98, how can I make the batch file window close automatically? I added "exit" as the last line of the batch file, but it didn't work. I just started learning DOS, so this question is really newbie-level. Please give me some advice, experts!
Floor 2 Posted 2003-11-14 00:00 ·  中国 湖北 武汉 联通
银牌会员
★★★
Credits 1,681
Posts 512
Joined 2003-08-02 00:00
23-year member
UID 7953
Gender Male
Status Offline
The hotkey set for a batch file on the desktop only works on the desktop, that is, only when no other window is open.
As for closing automatically, that's also a settings issue. Try it yourself, I'm using Win2000.
Somehow somewhere I've got to choose.
No matter if it is win or lose.
Floor 3 Posted 2003-11-15 00:00 ·  中国 安徽 合肥 联通
初级用户
Credits 113
Posts 3
Joined 2003-11-14 00:00
22-year member
UID 12815
Gender Male
Status Offline
I've got the auto-close part working.
But there's still a problem with the shortcut: Win2000 works, but WinME just won't, depressing.
Forum Jump: