中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-05 03:15
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 如何根据TAR文件的状态把文件分类? 查看 2,202 回复 22
16 发表于 2007-06-15 20:30 ·  中国 上海 联通
版主
★★★★★
积分 9,023
发帖 5,017
注册 2007-05-31 19:39
19年会员
UID 89899
性别 男
状态 离线
除了13楼的VBS可以用隐藏的方式运行之外
还可以为批处理创建一个快捷方式
然后schedule这个快捷方式
17 发表于 2007-06-15 20:31 ·  中国 上海 联通
版主
★★★★★
积分 9,023
发帖 5,017
注册 2007-05-31 19:39
19年会员
UID 89899
性别 男
状态 离线
使用at命令添加的计划任务也可以隐藏运行
18 发表于 2007-06-15 22:06 ·  中国 广东 广州 黄埔区 电信
初级用户
★★
积分 132
发帖 62
注册 2007-06-05 23:27
19年会员
UID 90371
性别 男
状态 离线
能否详细告知我怎样用at命令吗
19 发表于 2007-06-15 23:49 ·  中国 上海 联通
版主
★★★★★
积分 9,023
发帖 5,017
注册 2007-05-31 19:39
19年会员
UID 89899
性别 男
状态 离线
//能否详细告知我怎样用at命令吗

rem 下午1点15分运行
at 13:15 C:\test.bat

C:\>at /?
The AT command schedules commands and programs to run on a computer at
a specified time and date. The Schedule service must be running to use
the AT command.

AT | /DELETE ]
AT time
| /NEXT:date] "command"

\\computername Specifies a remote computer. Commands are scheduled on the
local computer if this parameter is omitted.
id Is an identification number assigned to a scheduled
command.
/delete Cancels a scheduled command. If id is omitted, all the
scheduled commands on the computer are canceled.
/yes Used with cancel all jobs command when no further
confirmation is desired.
time Specifies the time when command is to run.
/interactive Allows the job to interact with the desktop of the user
who is logged on at the time the job runs.
/every:date Runs the command on each specified day(s) of the week or
month. If date is omitted, the current day of the month
is assumed.
/next:date Runs the specified command on the next occurrence of the
day (for example, next Thursday). If date is omitted, the
current day of the month is assumed.
"command" Is the Windows NT command, or batch program to be run.
20 发表于 2007-06-16 10:19 ·  中国 广东 广州 黄埔区 电信
初级用户
★★
积分 132
发帖 62
注册 2007-06-05 23:27
19年会员
UID 90371
性别 男
状态 离线
我想在网络上以“cdghua******"开头所有电脑上,每天每隔10分钟重复运行 C:\test.bat 批处理,请用AT命令帮我完成,先谢啦
21 发表于 2007-06-16 20:46 ·  中国 广东 广州 黄埔区 电信
初级用户
★★
积分 132
发帖 62
注册 2007-06-05 23:27
19年会员
UID 90371
性别 男
状态 离线
Originally posted by lililulula at 2007-6-15 04:34 PM:

保存为vbs脚本运行即可

[ Last edited by lililulula on 2007-6-15 at 04:35 PM ]


用vbs脚本可实现,谢了,但现有一问题请教,假设vbs脚本有问题的话,当我运行vbs脚本时,会自动弹出一个带有“Windows 脚本宿主“标题的错误对话窗口,上面有些提示信息,请问能否有办法让这一个带有“Windows 脚本宿主“标题的错误对话窗口出现呢?请赐教
22 发表于 2007-06-16 20:54 ·  中国 浙江 杭州 联通
银牌会员
★★★
积分 1,928
发帖 931
注册 2007-01-06 11:46
19年会员
UID 75624
性别 男
状态 离线
23 发表于 2007-06-18 14:12 ·  中国 广东 广州 黄埔区 电信
初级用户
★★
积分 132
发帖 62
注册 2007-06-05 23:27
19年会员
UID 90371
性别 男
状态 离线
看了那些后似乎还是不能解决,要让带有“Windows 脚本宿主“标题的错误对话窗口出现,各位高手请给我把代码写在这吧,

[ Last edited by joshualaw on 2007-6-19 at 11:32 PM ]
附件
error windows.JPG
论坛跳转: