Jump to content

FileGetLongName + FileGetShortName


mrbond007
 Share

Recommended Posts

CODE

#include <String.au3>

Dim $file, $rev1, $rev2, $rev3, $rev4

$file = FileOpenDialog("shoes the file", "", "(*.*)", 1)

If @error Then Exit

$rev1 = FileGetLongName($file) ;or FileGetShortName($file)

$rev2 = _StringReverse($rev1)

$rev3 = StringSplit($rev2, '\', 1)

$rev4 = _StringReverse($rev3[1])

MsgBox(0, "with the path", $rev1)

MsgBox(0, "without the path", $rev4)

Funny way :whistle:

Link to comment
Share on other sites

what's wrong with _PathSplit() ???

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Nothing i'm just looking for funny ways to make it

Ah.....

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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