Jump to content

Recommended Posts

Posted

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

Posted
  • Moderators
Posted

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.

Posted

$path = "d:\document\autoit.exe"
$array = StringSplit($path,"\")
$name = $array[$array[0]]
MsgBox(64,"Name",$name)
Thanks, It's Work
  • 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
  • Recently Browsing   0 members

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