Jump to content
Sign in to follow this  
DeeRiee

Select File Name In File Path

Recommended Posts

DeeRiee

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


Sorry 4 Bad English, I'm Indonesian...I'm really need 'Translator' for helping me posting in this forum (http://deeriee.wordpress.com)

Share this post


Link to post
Share on other sites
dbzfanatic

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
DeeRiee

$path = "d:\document\autoit.exe"
$array = StringSplit($path,"\")
$name = $array[$array[0]]
MsgBox(64,"Name",$name)
Thanks, It's Work

Sorry 4 Bad English, I'm Indonesian...I'm really need 'Translator' for helping me posting in this forum (http://deeriee.wordpress.com)

Share this post


Link to post
Share on other sites
DeeRiee

THANK'S ALL FOR HELPING ME!!!!! ;):D


Sorry 4 Bad English, I'm Indonesian...I'm really need 'Translator' for helping me posting in this forum (http://deeriee.wordpress.com)

Share this post


Link to post
Share on other sites
euverve

Thanks for the share guys...

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  

×