Copy a file whose location is defined in the Registry?

D

Don J

How do you COPY or XCOPY a file whose name and location are defined in
the registry?

Don J

-----------------------------------------------------------------
 
J

JS

If you know the specific location in the registry, there should also be a
path name pointing to where the file is located on your hard drive.

JS
 
P

Pegasus \(MVP\)

Don J said:
How do you COPY or XCOPY a file whose name and location are defined in
the registry?

Don J

You could extract the desired value from the registry like so:
regedit /E c:\test.reg "HKey_Local_machine\System\CurrentControlSet\...."

You must now massage c:\test.reg in order to extract the file name
itself. Post again if you need any assistance with this part, and make
sure to poste the contents of test.reg.
 
D

Don J

How do you extract a file location from c:\test.reg? Also how do you
paste it as an argument to "COPY"?

Don J

---------------------------------------------------------------------
 
P

Pegasus \(MVP\)

Please read all of my reply: "... and make sure to
post the contents of test.reg."
 

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

Top