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

Create an account or login to comment

You need to be a member in order to leave a comment
TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...

Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.