Copy a file whose location is defined in the Registry?

  • Thread starter Thread starter Don J
  • Start date Start date
D

Don J

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

Don J

-----------------------------------------------------------------
 
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
 
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.
 
How do you extract a file location from c:\test.reg? Also how do you
paste it as an argument to "COPY"?

Don J

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