Sign in to follow this  
Followers 0
Guest Guest

processclose spacific file

4 posts in this topic

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??

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

um, this is my post, i wasn't logged in when i wrote it, oops...

Edited by CyberFunk Productions

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by emmanuel

"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

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))

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0