Anonymous_User Absent Member.
Absent Member.
443 views

Check for string in command-line


Hi,

I'm starting to loose my hair on this one: I'm trying to compare the
command line of a Java application to a string and then go on with the
login process. Here's what I got so far (shortened):


Code:
--------------------

1 Set ?string "jre\bin\javaw -ms64M -mx1024M -splash:splash.png -Dprevero.ipl="
2
3 GetCommandLine ?cmdline
4 If ?string In ?cmdline
5 Call LoginPrevero
6 EndScript
7 EndIf

--------------------

However, this doesn't work and it gives me the following error message:

Code:
--------------------

BROKER_ERROR_CONDITIONAL_COMMAND_NOT_HANDLED(-295)
Error analyzing line 4 in application definition "javaw.exe"

--------------------


Please, I need your help. Thanks.

*-Edit:-* Doh! It's -In and not In! RTFM... :rolleyes:


--
Popopinsel
------------------------------------------------------------------------
Popopinsel's Profile: https://forums.netiq.com/member.php?userid=3247
View this thread: https://forums.netiq.com/showthread.php?t=47676

0 Likes
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: Check for string in command-line

Popopinsel wrote:

>
> Hi,
>
> I'm starting to loose my hair on this one:
>
> *-Edit:-* Doh! It's -In and not In! RTFM... :rolleyes:


Glad you got it resolved.

This reply is just to keep Mr. "Automatic Reply" from complaining. 🙂

--
Kevin Boyle - Knowledge Partner
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.