Windows 7 Read Registry Value

Joined
Jun 15, 2012
Messages
2
Reaction score
0
I have created a batch file where I have to copy some files from root location to a software installation location. for example this is the command

mkdir "C:\Program Files\MySoftware\NewFolder"
xcopy NewFolder "C:\Program Files\MySoftware\NewFolder" /s /e /y

Now plz let me know If my installation path is different than C drive, How can I read this. I m very week in scripting. I am a network engineer not a software engineer. So kindly describe in details. Your reply is appreciated.
 
Yes, you can read the path from registry if it exists there. To do this in batch file use reg query.
For usage write reg query /? in command prompt (cmd).
Good luck!
 
Dear goodfellow,

Thnx for your reply. Could u plz describe this on above example as I am not goog in scripting or batch filing. I have these two commands:
mkdir "C:\Program Files\MySoftware\NewFolder"
xcopy NewFolder "C:\Program Files\MySoftware\NewFolder" /s /e /y

NOw plz tell how I use reg query (as per ur suggestion) on above commands. both are used in a batch file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top