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-07-01 04:53
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Problems with DOS reading the registry View 1,441 Replies 3
Original Poster Posted 2007-03-14 01:44 ·  IANA 局域网IP(Private-Use)
初级用户
Credits 30
Posts 13
Joined 2007-03-14 00:28
19-year member
UID 81631
Gender Male
Status Offline
There is a string propath under HKCU\Demo, and the value is: e:\People's Republic of China. How to read the value of propath when using reg export to export and then find?

My bat:

@echo off
reg export "HKCU\Demo" demo.reg
for /f "tokens=2 delims==" %%a in ('type demo.reg ^| find "propath" /v') do set path=%%~fa
ECHO %path%
del demo.reg
PAUSE >nul

Why is the read value something else?

[ Last edited by ivanisme on 2007-3-20 at 09:03 AM ]
Floor 2 Posted 2007-03-14 01:52 ·  中国 甘肃 张掖 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Floor 3 Posted 2007-03-14 01:55 ·  IANA 局域网IP(Private-Use)
初级用户
Credits 30
Posts 13
Joined 2007-03-14 00:28
19-year member
UID 81631
Gender Male
Status Offline
reg query 不 can't work
There are Chinese paths
Floor 4 Posted 2007-03-14 04:24 ·  IANA 局域网IP(Private-Use)
初级用户
Credits 30
Posts 13
Joined 2007-03-14 00:28
19-year member
UID 81631
Gender Male
Status Offline
Forum Jump: