China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-23 15:57
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Original] Quick Registry Navigation View 3,949 Replies 18
Floor 16 Posted 2007-03-25 04:27 ·  中国 湖北 黄冈 电信
高级用户
★★★
Credits 894
Posts 411
Joined 2007-02-17 12:15
19-year member
UID 79697
Gender Male
Status Offline
It makes use of the memory function of the lastkey key value. It's quite good. The inability to locate the specific value is a defect of the registry.
@set c= 不知则觉多,知则觉少,越知越多,便觉越来越少. --- 知多少.
@for,/l,%%i,in,(1,1,55)do,@call,set/p=%%c:~%%i,1%%<nul&ping/n 1 127.1>nul


Floor 17 Posted 2007-03-29 22:49 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
Okay, upload the REG file for 2003 SERVER SP1.
http://zhenlove.com.cn/cndos/fileup/files/reg.rar
Floor 18 Posted 2007-04-01 05:57 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
Give it a thumbs up, it's pretty good.
Floor 19 Posted 2007-04-13 21:46 ·  中国 天津 教育网
新手上路
Credits 2
Posts 1
Joined 2007-04-13 21:16
19-year member
UID 85039
Gender Male
Status Offline
请问如何在批处理文件中获取一个软件的根目录位置,然后将该位置设置成一个环境变量?
例如我想在批处理文件中用"set rarRoot= "来设置rarRoot环境变量为winrar的根目录,然后在后面的程序中使用。该如何实现呢?
谢谢
How to get the root directory location of a software in a batch file and then set that location as an environment variable?
For example, I want to use "set rarRoot= " in the batch file to set the rarRoot environment variable to the root directory of WinRAR, and then use it in subsequent programs. How to achieve this?
Thank you
Forum Jump: