Jump to content

processclose spacific file


Guest Guest
 Share

Recommended Posts

Guest Guest

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

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)

Link to comment
Share on other sites

  • Developers

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...