Jump to content

Get a filename?


AzKay
 Share

Recommended Posts

For example, If ive got:

http://ftp-mozilla.netscape.com/pub/mozill...2/en-US/Firefox Setup 2.0.exe

How would I get just the "Firefox Setup 2.0.exe"? The string is always changing, So Its not always that link.

Ive looked at the string functions, But I cant figure it out. Ive also searched, And didnt find anything. Yet again, I suck at searching, So that might also be the answer. So, Basically, Is there a function like "INetGetFileName"?

# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

  • Moderators

I like the _PathSplit() idea.

Also:

$url = 'http://www.somepath.com/and/so/on/etc/filename.ext'
$aurl = StringTrimLeft($url, StringInStr($url, '/', 0, -1))
MsgBox(0, '', $aurl)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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