标题: 记录开机时间的问题
[打印本页]
作者: 220110
时间: 2005-10-12 19:04
标题: 记录开机时间的问题
我在win2003中autoexec.nt最后加入:
echo. |time >>d:\boottime.txt
echo. |date >>d:\boottime.txt
开始几次还是可以的,但后来不知为什么不行了,也即boottime.txt中不再有新记录增加。
请教大家了。
作者: JonePeng
时间: 2005-10-12 20:37
试试改为:
time /t >>d:\boottime.txt
date /t >>d:\boottime.txt
作者: 220110
时间: 2005-10-13 22:18
一样还是不行,是不是autoexec.nt在加载过程中,有什么加载出错而跳过去?
我的autoexec.nt是这样:
@echo off
REM AUTOEXEC.BAT is not used to initialize the MS-DOS environment.
REM AUTOEXEC.NT is used to initialize the MS-DOS environment unless a
REM different startup file is specified in an application's PIF.
REM Install CD ROM extensions
lh %SystemRoot%\system32\mscdexnt.exe
REM Install network redirector (load before dosx.exe)
lh %SystemRoot%\system32\redir
REM Install DPMI support
lh %SystemRoot%\system32\dosx
作者: willsort
时间: 2005-10-13 22:35
Re 220110:
autoexec.nt 只有在启动command.com时才会被执行,它在系统启动或者启动cmd.exe时并不会执行。因此,是否是你对autoexec.nt的执行预期有所偏差?
作者: 220110
时间: 2005-10-14 10:10
执行预期有所偏差?
这句不是很理解,烦请琐 Mr. willsort 再举例指导下。例如?
我的win2000只有autoexec.nt ,没有autoexec.bat,所以试不了在.bat 下会不会这样。
作者: willsort
时间: 2005-10-14 10:22
Re 220110:
关于autoexec.nt的讨论请参见以下链接:
[17107](讨论)MDOS7.10启动过程中各因素的相互影响
http://www.cn-dos.net/forum/viewthread.php?tid=17107
[17155]xp下在autoexec.bat编了点命令,怎么让它开机自动运行
http://www.cn-dos.net/forum/viewthread.php?tid=17155