Sign in to follow this  
Followers 0
El-Trucha

Problems with FileGetShortName() ...

3 posts in this topic

Hello every1!! :)

OK...does anybody know why ALWAYS one of these two statements don't work?:

$midiFile = FileSaveDialog("Save MIDI file...", "::{450D8FBA-AD25-11D0-98A8-0800361B1103}", "MIDI files (*.mid)", 2)
GUICtrlSetData($midi, FileGetShortName($midiFile))
;; OR;;
$textFile = FileOpenDialog("Open text file...", "::{450D8FBA-AD25-11D0-98A8-0800361B1103}", "All files (*.*)", 3)
GUICtrlSetData($text, FileGetShortName($textFile))

If one works, the other doesn't!! :lmao:

What's wrong with it?? :)

Thanx!! :)

Btw, I'm talking about the FileGetShortName ones... o:)


El-Truchahttp://www.truchasoft.tk[url="ftp://tsfc.homeftp.net"]ftp://tsfc.homeftp.net[/url]hotline://tsfc.ath.cx

Share this post


Link to post
Share on other sites



Returns the 8.3 short path+name of the path+name passed.

Or that?
$textFile = FileOpenDialog("Open text file...", "::{450D8FBA-AD25-11D0-98A8-0800361B1103}", "All files (*.*)", 3)
$sFilename= StringTrimLeft( $textFile, StringInStr($textFile, '\', -1, -1) )

Share this post


Link to post
Share on other sites

Returns the 8.3 short path+name of the path+name passed.

Thats what I want, the old DOS filenames... :lmao:

Thanx!! o:)


El-Truchahttp://www.truchasoft.tk[url="ftp://tsfc.homeftp.net"]ftp://tsfc.homeftp.net[/url]hotline://tsfc.ath.cx

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  
Followers 0