Link to home
Start Free TrialLog in
Avatar of rbhargaw
rbhargawFlag for United States of America

asked on

No matching % for a variable name, wise script

Hello Experts,

I am getting the following error while compiling WISE Script "No matching % for a variable name"

The error occures at the following line and only when "%" is added

Registry Key Software\Pinpoint\Database=Password%

Can any one let me know how to solve the issue?

Thanks
Roop
Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

Why do you have the % character on that line?  Do you need to use it literally?  Or is it meant to be used to access a "variable"?  Please let us know what that line is suppose to do.
bol
Avatar of rbhargaw

ASKER

This script writes the DSN name , database name, password in the registry and our client server  picks the DSN details from registry to connect to database. Now DBA has given me a password which contains "%" in between the password string. So when I modify the password in the wise script and it gives me error
ASKER CERTIFIED SOLUTION
Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Bol,

You saved me ..
"%%" worked perfectly. no compilation error occured and registry was updated with only one %
Thanks for the solution.

Roop
Thanks a lot!
Your welcome!  I'm glad I could help.  Thanks for the fun question, the grade and the points.
bol