Reply to Thread

Post a reply to the thread: Trying to put a '%' in a registry value

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 04-02-2021, 10:35 AM
    linder

    Re: Trying to put a '%' in a registry value

    Thanks for the update. Yes, %% is the correct way to handle this.

    Friedrich
  • 04-01-2021, 12:03 PM
    Adam Shaw

    Re: Trying to put a '%' in a registry value

    Quote Originally Posted by Adam Shaw View Post
    I am trying to put a string into a registry value with the 'Create/Update Key and Value' command and running into problems.
    I have a string ("C:\Program Files (x86)\Some.exe" Parm1 "%1") that keeps throwing a syntax error.
    GEN1077 Syntax Error (1)
    Is there any way to escape this percent sign, or another method to achieve my goal?
    Thank you!
    I had a colleague tell me, it's 2 percent signs: %%
  • 04-01-2021, 11:45 AM
    Adam Shaw

    Trying to put a '%' in a registry value

    I am trying to put a string into a registry value with the 'Create/Update Key and Value' command and running into problems.
    I have a string ("C:\Program Files (x86)\Some.exe" Parm1 "%1") that keeps throwing a syntax error.
    GEN1077 Syntax Error (1)
    Is there any way to escape this percent sign, or another method to achieve my goal?
    Thank you!

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •