|
神仙贝贝
初级用户
 
积分 167
发帖 16
注册 2004-7-6
状态 离线
|
『楼 主』:
在批处理中怎样把%windir%写入另一个批处理文件
使用 LLM 解释/回答一下
忽忽,问一个问题,在命令行下怎样向a.txt中写入:%windir%
我原来想的是c:\>echo %windir%>a.txttype a.txt之后才知道不是那回事 ,55,怎么办
Hehe, ask a question, how to write %windir% into a.txt under the command line.
I originally thought c:\>echo %windir%>a.txt and then type a.txt to find out it's not the case, 55, what to do
|
|
2004-8-2 00:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
你也算是老站友了,发帖还这么不规范,这个问题很简单,但我暂时不打算回答你。除非你能看明白我签名中的帖子。
You are also an old forum member, but your post is still so non-standard. This problem is very simple, but I don't plan to answer you for now. Unless you can understand the post in my signature.
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2004-8-2 00:00 |
|
|
神仙贝贝
初级用户
 
积分 167
发帖 16
注册 2004-7-6
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
恩,明白拉,告诉我吧,好着及下次不敢了我今年刚刚高考完,在自学这些东西,我去书店也没有专门的这方面的书,55我记的上次我在一个贴子里问的别的问题,我上面问的问题你给我解释了,可是真的不明白,所以今天又发,555,作错事了
Well, got it. Tell me then. I'm so anxious and won't dare next time I just finished the college entrance examination this year and am self-studying these things. I didn't find any specialized books on this in the bookstore, 55. I remember I asked another question in a post last time, and you explained the question I asked above, but I really didn't understand, so I posted again today, 555. Did something wrong
|
|
2004-8-2 00:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
其实,你只需要改一个帖子的标题,例如改成:批处理中如何将%windir%串输出到另一个批处理文件中?
而且,你应该在帖子中注明你是在哪个Windows环境下这么操作的。建议你现在改好你的顶楼的帖子,下次发帖不需要我这么提醒了吧?由于不知道你是在哪个Windows下操作的,我使用Windows xp/2003的dos测试了一下,下面的命令是可用的,Windows 2000应该也没有问题:echo %windir^% > a.txt
Actually, you only need to change the title of a post, for example, change it to: How to output the %windir% string to another batch file in batch processing? And you should note in the post which Windows environment you operated in. Suggest you now modify the top post of yours, and next time you post, there's no need for me to remind you like this, right? Since I don't know which Windows you operated in, I tested with Windows xp/2003 DOS, and the following command is usable, and Windows 2000 should also be okay: echo %windir^% > a.txt
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2004-8-2 00:00 |
|
|
神仙贝贝
初级用户
 
积分 167
发帖 16
注册 2004-7-6
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
恩,谢谢,我已经改过来了这个我懂了,还记的我上次问的那个问题吗 ,就是让朋友们写一个批处理的注释,其中有一段:set drive=
set alldrive=c d e f g h i j k l m n o p q r s t u v w x y z
echo @echo off >drivechk.bat
echo @prompt %%%%comspec%%%% /f /c vol %%%%1: $b find "Vol" > nul >{t}.bat
%comspec% /e:2048 /c {t}.bat >>drivechk.bat
del {t}.bat
echo if errorlevel 1 goto enddc >>drivechk.bat虽然你已经给我解释过了,但是我还是不明白为什么回出现%%%%comspec%%%% /f /c vol %%%%1: 向这样的那么一大串%%%%
Um, thanks, I've already changed it. I understand this. Do you still remember the question I asked last time? It was about having friends write a batch file comment. There was a part:
set drive=
set alldrive=c d e f g h i j k l m n o p q r s t u v w x y z
echo @echo off >drivechk.bat
echo @prompt %%%%%%comspec%%%%%% /f /c vol %%%%%%1: $b find "Vol" > nul >{t}.bat
%comspec% /e:2048 /c {t}.bat >>drivechk.bat
del {t}.bat
echo if errorlevel 1 goto enddc >>drivechk.bat Although you've already explained it to me, I still don't understand why there are so many %%%%%% like %%%%%%comspec%%%%%% /f /c vol %%%%%%1:
|
|
2004-8-2 00:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
关于上次的那个HDKP.bat的问题,上次已经有一个网友仔细回答过了,你应该仔细研究才对啊。没有研究精神是什么也学不会搞不好的。
Regarding the problem of the previous HDKP.bat, a netizen has already answered it carefully last time. You should study it carefully. Without the spirit of research, you can't learn anything and may not be able to succeed.
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2004-8-2 00:00 |
|
|
神仙贝贝
初级用户
 
积分 167
发帖 16
注册 2004-7-6
状态 离线
|
|
2004-8-3 00:00 |
|
|
defrag
中级用户
   痴迷DOS者
积分 456
发帖 570
注册 2004-10-9
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
echo %%%%comspec%%%%
显示:%%comspec%%
echo %%%%comspec%%%%
Displays: %%%%comspec%%%%
|

DOS不是万能的,没有DOS是万万不能的
自古系统谁无死?留取胆清照汗青!uploadImages/20035317345478982.png |
|
2005-4-24 00:00 |
|