Jump to content

Recommended Posts

Posted

Hi,

I'm having issue once compile as below picture. I'm looking to attached the content of  "D:\Tdp.exe" "%1" -v

Help to advice.

Func RegChange ()
    $RegCreate = RegWrite ("HKEY_CLASSES_ROOT\Applications\Tdp.exe\shell\edit\command", "", "REG_SZ", ""D:\Tdp.exe" "%1" -v") ;success
    If $RegCreate = 0 then msgbox (0, "Failure", "Unable to set SECURITY registry value at HKCR\Applications\Tdp.exe\shell\edit\command")

    $RegExists = RegRead ("HKEY_CLASSES_ROOT\Applications\Tdp.exe\shell\edit\command", "") ;returns 1
    MsgBox ($MB_SYSTEMMODAL, "TDP_Edit", $RegExists)

 

image.thumb.png.efc0572b507e1789680b6718c8018871.png

  • Developers
Posted
  On 7/19/2021 at 7:31 AM, laulong79 said:

HOW TO MOVE IT?

Sorry I still new on this.

 

Expand  

It is already moved as the post states! ;) 

  On 7/19/2021 at 7:22 AM, Jos said:

Moved to the appropriate forum.

Expand  

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted
  On 7/19/2021 at 5:52 AM, laulong79 said:

Hi,

I'm having issue once compile as below picture. I'm looking to attached the content of  "D:\Tdp.exe" "%1" -v

Help to advice.

Func RegChange ()
    $RegCreate = RegWrite ("HKEY_CLASSES_ROOT\Applications\Tdp.exe\shell\edit\command", "", "REG_SZ", ""D:\Tdp.exe" "%1" -v") ;success
    If $RegCreate = 0 then msgbox (0, "Failure", "Unable to set SECURITY registry value at HKCR\Applications\Tdp.exe\shell\edit\command")

    $RegExists = RegRead ("HKEY_CLASSES_ROOT\Applications\Tdp.exe\shell\edit\command", "") ;returns 1
    MsgBox ($MB_SYSTEMMODAL, "TDP_Edit", $RegExists)

 

image.thumb.png.efc0572b507e1789680b6718c8018871.png

Expand  

Based on your screenshot, id try this

$RegCreate = RegWrite ("HKEY_CLASSES_ROOT\Applications\Tdp.exe\shell\edit\command", "", "REG_SZ",'| "D:\Tdp.exe" "%1" -v"')

 

Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this:

  Reveal hidden contents
Posted
  On 7/19/2021 at 5:52 AM, laulong79 said:

    $RegCreate = RegWrite ("HKEY_CLASSES_ROOT\Applications\Tdp.exe\shell\edit\command", "", "REG_SZ", ""D:\Tdp.exe" "%1" -v") ;success

Expand  

Your quotation marks are off. I would suggest using single quotes for the last parameter, like this --

$RegCreate = RegWrite ("HKEY_CLASSES_ROOT\Applications\Tdp.exe\shell\edit\command", "", "REG_SZ", '"D:\Tdp.exe" "%1" -v') ;success

P.S. See here for the correct method of posting code to the forum

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...