Jump to content

Search the Community

Showing results for tags 'string replacement'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. 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
×
×
  • Create New...