How to read sth from registry
|
Original Message
|
Name: mfc_oracle
Date: April 21, 2004 at 00:05:11 Pacific
Subject: How to read sth from registry OS: DOS 6.2 or higher CPU/Ram: X86 family (Pentium II) 3
|
Comment: I'd like to read a variable (that contains a path)from registry and copy some files in to that path using a bathc file. I have to questions: 1. How I can read sth from registry using a batch file. 2. How I can give that path to a batch file to copy some files in it. Thanks for your help
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: mfc_oracle
Date: April 21, 2004 at 02:21:09 Pacific
|
Reply: (edit)for reading a key value from registry, I've used: REGEDIT /E MY_REG1.REG "HKEY_LOCAL_MACHINE\\SOFTWARE\\SComputer\\ST\\General" but it didn't work :( sorry for my last message spelling errors! It's due to overworking ;)
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: melee5
Date: April 21, 2004 at 21:40:37 Pacific
|
Reply: (edit)Reason it didn't work is because it should have been like this instead. REGEDIT /E MY_REG1.REG HKEY_LOCAL_MACHINE\SOFTWARE\SComputer\ST\General Depending on what is there at that key would help a lot as to getting the path you want into a variable for file copying. Mind posting that specific string that includes the path? Is it unique in that entire key? We don't need the entire key unless it's very short - I don't happen to have that one or I might have offered the full solution.
Report Offensive Follow Up For Removal
|
Use following form to reply to current message: