中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-18 18:11
47,814 topics / 349,908 posts / today 1 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » Problems with DOS reading the registry
Printable Version  1,483 / 3
Floor1 ivanisme Posted 2007-03-14 01:44
初级用户 Posts 13 Credits 30
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 ]
Floor2 vkill Posted 2007-03-14 01:52
金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽
Floor3 ivanisme Posted 2007-03-14 01:55
初级用户 Posts 13 Credits 30
reg query 不 can't work
There are Chinese paths
Floor4 ivanisme Posted 2007-03-14 04:24
初级用户 Posts 13 Credits 30
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023