Jump to content

Select File Name In File Path


Recommended Posts

I'm newbie here, and i want to ask about how to select the file name in file path? ;)

example: d:\document\autoit.exe

How to select only the autoit.exe ;)

Please tell me script that can select file name in any path and file name :D

Link to comment
Share on other sites

Link to comment
Share on other sites

  • Moderators

More solutions:

$path = "d:\document\autoit.exe"
$file = StringRegExpReplace($path, "^.*\\", "")
ConsoleWrite($file & @LF)

;)

Ha, nice... I do that much more complicated.

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

  • 6 months later...

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