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-05 06:32
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Can a batch file automatically handle mouse and keyboard operations when applying upgrade patches? View 929 Replies 3
Original Poster Posted 2007-07-01 16:14 ·  中国 河北 唐山 联通
银牌会员
★★★
Credits 1,148
Posts 514
Joined 2007-06-01 12:51
19-year member
UID 89959
Gender Male
From 河北
Status Offline
Under XP, how do you use a batch file to handle keyboard events

How do you handle it under DOS? Can an expert tell me?
Floor 2 Posted 2007-07-01 17:08 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Probably not
Floor 3 Posted 2007-07-02 00:28 ·  中国 河北 唐山 联通
银牌会员
★★★
Credits 1,148
Posts 514
Joined 2007-06-01 12:51
19-year member
UID 89959
Gender Male
From 河北
Status Offline
VB should work, right? One more question: can VB write DOS programs? I don't really know how to use that VBDOS
Floor 4 Posted 2007-07-02 12:57 ·  中国 上海 联通
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Do you absolutely have to use the keyboard during the upgrade?

@echo off
rem Suppose all the patches are placed in the C:\test folder
set TarDir=C:\test
cd %TarDir%
for %%i in (*.exe) do (
%%i /quiet /passive /norestart /nobackup
)
Forum Jump: