Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

A question on syntax

Featured Replies

Hello,

Wanted to say what a great program this has been for me.

I seem to be having a small issue with regards to syntax.

I'm trying to do a gcond check for Malwarebytes' Anti-Malware

and I'm not sure how to enter the string value to check for.

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

Error in condition statement for;

Malwarebytes' Anti-Malware

FileExists(\"%programfiles%\Malwarebytes' Anti-Malware\MBAM.EXE")

Treating as a false condition

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

The above error is what I get, no mater what syntax I use, I just cant get it to like that little ' after the s. :no:

Does anyone know the magic code to accomplish this?

@ Exeter212

Try this

gcond[pn]=['FileExists(\"%programfiles%\\Malwarebytes\' Anti-Malware\\mbam.exe")'];

(Put \ before the ' )

Worked for me in the past.

Greetings, DJPro

Edited by DJPro

  • Author

@ Exeter212

Try this

gcond[pn]=['FileExists(\"%programfiles%\\Malwarebytes\' Anti-Malware\\mbam.exe")'];

(Put \ before the ' )

Worked for me in the past.

Greetings, DJPro

Thx DJPro

I just checked my script entry and that seems to be what I'm using now.

prog[pn]=['Malwarebytes\' Anti-Malware'];

ordr[pn]=[24];

desc[pn]=['Malwarebytes\' Anti-Malware'];

uid[pn]=['MBAM'];

dflt[pn]=['yes'];

cat[pn]=['System'];

forc[pn]=['no'];

configs[pn]=['Interactive,Full'];

gcond[pn]=['FileExists(\\"%programfiles%\\Malwarebytes\' Anti-Malware\\MBAM.EXE\")'];

cmd1[pn]=['"%wpipath%\\Install\\MBAM-SETUP.exe"'];

picf[pn]=['MBAM.JPG'];

picw[pn]=['600'];

pich[pn]=['500'];

textl[pn]=['Top'];

pn++;

The delimiting \ seems to work everywhere else EXCEPT the gcond statement, must be some unique parsing that goes on during this check perhaps?

If I rename the installed folder to discard the ' everything works fine.

Hi Exeter212

Notice this

gcond[pn]=['FileExists(\\"%programfiles%\\Malwarebytes\' Anti-Malware\\MBAM.EXE\")'];

Change to this

gcond[pn]=['FileExists(\"%programfiles%\\Malwarebytes\' Anti-Malware\\MBAM.EXE\")'];

You have 2 \\ before "%programfiles%

If you only have 1 \ the GCOND statement will work correctly

Greetz, DJPro

Edited by DJPro

  • Author

Hi Exeter212

Notice this

gcond[pn]=['FileExists(\\"%programfiles%\\Malwarebytes\' Anti-Malware\\MBAM.EXE\")'];

Change to this

gcond[pn]=['FileExists(\"%programfiles%\\Malwarebytes\' Anti-Malware\\MBAM.EXE\")'];

You have 2 \\ before "%programfiles%

If you only have 1 \ the GCOND statement will work correctly

Greetz, DJPro

Kicking myself in the face for not noticing that!! I figured a fresh set of skilled eyes would spot what I failed to notice. Working like a charm now. :thumbup Many thanx DJPro, you nailed that one!

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.