Guest Guest Posted June 13, 2004 Share Posted June 13, 2004 ok, i have an ini file with a list of paths to different programs ex. [Programs] 1=C:\Program Files\Kazaa Lite K++\AVIPreview.exe 2=C:\Program Files\Kazaa Lite K++\BadIPUpdater.exe 3=C:\Program Files\Kazaa Lite K++\defuserset.exe What i want to do is read the ini, and processclose these files, the problem i'm having is when i read the file i get the whole path and processclose only needs the end part (ex. AVIPreview.exe), how to i seperate this from the whole path?? Link to comment Share on other sites More sharing options...
CyberFunk Productions Posted June 13, 2004 Share Posted June 13, 2004 (edited) um, this is my post, i wasn't logged in when i wrote it, oops... Edited June 13, 2004 by CyberFunk Productions Link to comment Share on other sites More sharing options...
emmanuel Posted June 13, 2004 Share Posted June 13, 2004 (edited) stringstrip from the right to the first \ er, that'd be the opposite of what you want... look at the string* functions in the helpfile, one of them will do what you want. Edited June 13, 2004 by emmanuel "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Developers Jos Posted June 13, 2004 Developers Share Posted June 13, 2004 um, this is my post, i wasn't logged in when i wrote it, oops...you need v 3.0.102 for this: $PGM1Whole = Iniread("xyz.ini, "programs","1","") $pgm1 = StringTrimLeft($PGM1Whole,StringInstr($PGM1Whole,"\",0,-1)) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now