简体   繁体   中英

Unable to read registry from batch file

I have a requirement where I need to use a batch file to perform certain tasks depending on some registry values. I am able to run and achieve my goal if I run the batch file manually. But if the batch is run using some executable it is not able to get the registry values. It reads all the registry values as empty. I don't see any particular reason for this behavior. The actual requirement is to run this batch file as part of self extracting executable. I tried it launching using C# application, still no luck. Any ideas? what am I doing wrong.

提升可执行文件的权限,即以管理员身份运行

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM