Exeter212 Posted June 23, 2010 Posted June 23, 2010 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-MalwareFileExists(\"%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. Does anyone know the magic code to accomplish this?
DJPro Posted June 23, 2010 Posted June 23, 2010 (edited) @ Exeter212Try thisgcond[pn]=['FileExists(\"%programfiles%\\Malwarebytes\' Anti-Malware\\mbam.exe")'];(Put \ before the ' )Worked for me in the past.Greetings, DJPro Edited June 23, 2010 by DJPro
Exeter212 Posted June 23, 2010 Author Posted June 23, 2010 @ Exeter212Try thisgcond[pn]=['FileExists(\"%programfiles%\\Malwarebytes\' Anti-Malware\\mbam.exe")'];(Put \ before the ' )Worked for me in the past.Greetings, DJProThx DJProI 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.
DJPro Posted June 24, 2010 Posted June 24, 2010 (edited) Hi Exeter212Notice thisgcond[pn]=['FileExists(\\"%programfiles%\\Malwarebytes\' Anti-Malware\\MBAM.EXE\")'];Change to thisgcond[pn]=['FileExists(\"%programfiles%\\Malwarebytes\' Anti-Malware\\MBAM.EXE\")'];You have 2 \\ before "%programfiles%If you only have 1 \ the GCOND statement will work correctlyGreetz, DJPro Edited June 24, 2010 by DJPro
Exeter212 Posted June 24, 2010 Author Posted June 24, 2010 Hi Exeter212Notice thisgcond[pn]=['FileExists(\\"%programfiles%\\Malwarebytes\' Anti-Malware\\MBAM.EXE\")'];Change to thisgcond[pn]=['FileExists(\"%programfiles%\\Malwarebytes\' Anti-Malware\\MBAM.EXE\")'];You have 2 \\ before "%programfiles%If you only have 1 \ the GCOND statement will work correctlyGreetz, DJProKicking 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. Many thanx DJPro, you nailed that one!
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now