Let batch file copy files into folder in REG-SZ var

By SaturnV
Apr 25, 2009
  1. Hello,
    I'm trying to make a batch file which has to copy a file to a folder which can be found in the registry.
    I currently have this:
    reg query "HKEY_LOCAL_MACHINE\SOFTWARE\blablabla\blabla" /v InstallPath
    When I run the batch file, it shows me the correct folder which the batch file finds in the registry, although I don't know how to let the batch file copy a specific file into that folder. I can do this:
    copy blabla/hkjlkj/jlk.txt hjhk/hlkjkl
    and then it works completely, but how can I set the destination directory of that file to the folder it found in my registry. (the output of the above mentioned file)

    Already thanks in advance!
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...