|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
Originally posted by xycoordinate at 2007-5-5 11:27:
为什么只能显示1次???第2次在运行就什么也不显示了!
config.nt
DOSONLY
dos=high, umb
device=%SystemRoot%\system32\himem.sys
files=40
DEVICE=C:\WINDOWS\System32\ANSI ...
不会的吧?lxmxn也是这样的情况~~郁闷哦
Originally posted by xycoordinate at 2007-5-5 11:27:
Why can it only be displayed once??? The second time it runs, nothing is displayed!
config.nt
DOSONLY
dos=high, umb
device=%SystemRoot%\system32\himem.sys
files=40
DEVICE=C:\WINDOWS\System32\ANSI ...
It shouldn't be like that. lxmxn is also in such a situation~~Depressed oh
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2007-5-5 11:38 |
|
|
bjsh
银牌会员
    
积分 2000
发帖 621
注册 2007-1-1
状态 离线
|
|
2007-5-5 11:44 |
|
|
ccwan
金牌会员
     
积分 2725
发帖 1160
注册 2006-9-23 来自 河北廊坊
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
我也是这种情况。
莫非Vista不这样?
I am also in this situation. Could it be that Vista is not like this?
|

三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。 |
|
2007-5-5 11:45 |
|
|
bjsh
银牌会员
    
积分 2000
发帖 621
注册 2007-1-1
状态 离线
|
|
2007-5-5 12:00 |
|
|
bjsh
银牌会员
    
积分 2000
发帖 621
注册 2007-1-1
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
现在在vista下;运行了显示ms-dos版本不匹配;
对了
ren %WinDir%\System32\config.nt %WinDir%\System32\config.nt.bak
因为这句语法是错的:
所以凡是运行过该批处理的 机子 里的config.nt全部被覆盖了;而且没有 config.nt.bak的备份 ;
这句应改为:
ren %WinDir%\System32\config.nt config.nt.bak
刚看了下 原来的xpsp2中的config.nt 的内容为(除了注释):
dos=high, umb
device=%SystemRoot%\system32\himem.sys
files=40
vista就不知道了;
Last edited by bjsh on 2007-5-5 at 12:35 PM ]
Now under Vista; running shows that the MS-DOS version does not match;
By the way
ren %WinDir%\System32\config.nt %WinDir%\System32\config.nt.bak
Because this syntax is wrong:
So all the machines that have run this batch processing have their config.nt all overwritten; and there is no backup of config.nt.bak;
This sentence should be changed to:
ren %WinDir%\System32\config.nt config.nt.bak
Just took a look, the content of config.nt in the original XP SP2 (excluding comments) is:
dos=high, umb
device=%SystemRoot%\system32\himem.sys
files=40
I don't know about Vista;
Last edited by bjsh on 2007-5-5 at 12:35 PM ]
|
|
2007-5-5 12:18 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
Originally posted by bjsh at 2007-5-5 12:18:
现在在vista下;运行了显示ms-dos版本不匹配;
我估计问题出现在这里
ren %WinDir%\System32\config.nt %WinDir%\System32\config.nt.bak
因为这句语法是错的:
所以凡 ...
的确错了,我改~~
Originally posted by bjsh at 2007-5-5 12:18:
Now under Vista; running shows that the MS-DOS version does not match;
I estimate the problem is here
ren %WinDir%\System32\config.nt %WinDir%\System32\config.nt.bak
Because this syntax is wrong:
So all...
Indeed wrong, I'll change it~~
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2007-5-5 12:32 |
|
|
fq1986
初级用户
 
积分 66
发帖 33
注册 2007-4-28
状态 离线
|
『第 22 楼』:
使用 LLM 解释/回答一下
不错哦...收下了...试试哦.......
Not bad... accepted... try it out.......
|
|
2007-5-5 12:42 |
|
|
qzwqzwtest
初级用户
 
积分 21
发帖 6
注册 2007-2-5
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
不太明白
DEVICE=%WinDir%\System32\ANSI.SYS /x
为什么不与其他语句采用同样的输出方式?
为什么不用%SystemRoot%变量代替%WinDir%?
而且在已经有config.nt.bak的情况下仍然ren的话会出错
只不过我们看不到
所以建议退出前还原
Not quite understand
DEVICE=%WinDir%\System32\ANSI.SYS /x
Why doesn't it use the same output method as other statements?
Why not use the %SystemRoot% variable instead of %WinDir%?
Moreover, if there is already a config.nt.bak, ren will cause an error when still renaming
But we can't see it
So it is suggested to restore before exiting
|

qzwqzw id for test |
|
2007-5-5 17:58 |
|
|
ZJHJ
高级用户
   
积分 609
发帖 374
注册 2006-8-2
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
哈哈,我修改了est的贴子.留下主要的.
@echo off
chcp 437>nul
graftabl 936>nul
if not exist CONFIG.NT copy %WinDir%\System32\CONFIG.NT CONFIG.NT
@cls
echo DEVICE=%WinDir%\System32\ANSI.SYS /x >%WinDir%\System32\CONFIG.NT
command /cecho
command /cecho [1;31m我们要[32m变化[33m颜色了,[35m你要[36m变不变[37m哦!
pause>nul
copy CONFIG.NT %WinDir%\System32\CONFIG.NT
del CONFIG.NT
exit
Haha, I modified the post of est. Keep the main part.
@echo off
chcp 437>nul
graftabl 936>nul
if not exist CONFIG.NT copy %WinDir%\System32\CONFIG.NT CONFIG.NT
@cls
echo DEVICE=%WinDir%\System32\ANSI.SYS /x >%WinDir%\System32\CONFIG.NT
command /cecho
command /cecho
|
|
2007-5-6 15:06 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
贴图啦,贴图啦
@echo off & setlocal enableextensions enabledelayedexpansion
cls
set cecho_=command /cecho
for /l %%i in (0,1,7) do (
for /l %%j in (2,1,9) do (
set /a k=%%j-2
%cecho_%
Last edited by electronixtar on 2007-5-6 at 06:34 PM ]
Posting images, posting images
@echo off & setlocal enableextensions enabledelayedexpansion
cls
set cecho_=command /cecho
for /l %%i in (0,1,7) do (
for /l %%j in (2,1,9) do (
set /a k=%%j-2
%cecho_%
Last edited by electronixtar on 2007-5-6 at 06:34 PM ]
附件
1: 1.jpg (2007-5-6 15:32, 57.46 KiB, 下载附件所需积分 1 点
,下载次数: 3)
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2007-5-6 15:32 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
|
2007-5-6 16:34 |
|
|
bjsh
银牌会员
    
积分 2000
发帖 621
注册 2007-1-1
状态 离线
|
|
2007-5-6 16:46 |
|
|
ZJHJ
高级用户
   
积分 609
发帖 374
注册 2006-8-2
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
第 25 楼 你把代码贴出来撒
Floor 25: Please post your code.
|
|
2007-5-6 18:23 |
|
|
546474
中级用户
  
积分 247
发帖 123
注册 2007-4-17
状态 离线
|
『第 29 楼』:
使用 LLM 解释/回答一下
确实很牛,菜鸟望尘莫及啊。
It's really amazing, and beginners can't reach it.
|
|
2007-5-8 15:51 |
|
|
studythedos
初级用户
 
积分 91
发帖 45
注册 2007-3-14
状态 离线
|
『第 30 楼』:
使用 LLM 解释/回答一下
为什么只能显示一次,
再运行时就什么也没了
Why can it only be displayed once, and when running again, there is nothing?
|
|
2007-5-9 13:26 |
|