请教:批处理中AT命令的时间参数传递问题
现在遇到个问题:
用net time \\computerName 获取了目标机器的当前时间,传给字串,如:string="上午 08:31",现在怎么把这个时间加1做为参数,并传给AT命令使其能正确执行?
@echo off
for /f "" %%a in('net time \\computerName') do (set string=%%a)
at \\computerName string test.exe ;这一句功能应该怎么实现
谢谢!
用net time \\computerName 获取了目标机器的当前时间,传给字串,如:string="上午 08:31",现在怎么把这个时间加1做为参数,并传给AT命令使其能正确执行?
@echo off
for /f "" %%a in('net time \\computerName') do (set string=%%a)
at \\computerName string test.exe ;这一句功能应该怎么实现
谢谢!
...全文
相关推荐
How to Cheat at Windows System Administration Using Command Line Scripts Sep 2006
Windows系统管理中提高效率或解决问题的指南,发布时间为2006年9月。
【批处理脚本】-3.2-call命令详解
call命令详解
CMD命令速查手册 ,pdf版
通过AT [\\computername] time [/INTERACTIVE] [/EVERY:date[,]] "command"的格式,可以指定在本地或远程计算机上运行的命令,甚至设定周期性执行
cmd 汇编语言命令大全
- **AT**: 安排在特定时间运行的命令,可用于任务调度。- **ATTRIB**: 修改文件属性,如只读、隐藏、系统等。
Dos 命令行大全 适用任何系统
#### AT- **功能**:安排在特定日期和时间运行命令和程序。- **语法**:`at \\computername time command`- **应用场景**: - 定期备份数据。


