Hi, This is a registry importer.
it will create a copy of "AutoItReg.reg", named "temp.reg", and in this file change %path% by the current path, give the path double slashes \\ import the file and delete it.
Usage:
Open or create "AutoItReg.reg" and change the part of the file you want it to have your current folder path to %path%,
AutoIt Reg.au3
#include <File.au3>
$Path = _PathFull(@ScriptDir)
$Path = StringReplace($Path, "\", "\\")
;MsgBox(4096, "", $Path, 10) ;optional msg box to check what the string to be written will look like
$File1 = ("AutoItReg.reg")
$File2 = ("temp.reg")
FileCopy($File1, $File2)
Sleep(2500)
$Text = FileRead($File2)
$Text = StringReplace($Text, "%path%", $Path)
FileDelete($File2)
FileWrite($File2, $Text)
ShellExecuteWait ("temp.reg")
FileDelete ("temp.reg")
Example .reg
AutoItReg.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\123]
"test"="%path%"
Greetz AutoIt Reg.au3