El-Trucha Posted February 2, 2005 Share Posted February 2, 2005 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!! What's wrong with it?? Thanx!! Btw, I'm talking about the FileGetShortName ones... El-Truchahttp://www.truchasoft.tk[url="ftp://tsfc.homeftp.net"]ftp://tsfc.homeftp.net[/url]hotline://tsfc.ath.cx Link to comment Share on other sites More sharing options...
Josbe Posted February 2, 2005 Share Posted February 2, 2005 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) ) AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
El-Trucha Posted February 2, 2005 Author Share Posted February 2, 2005 Returns the 8.3 short path+name of the path+name passed. Thats what I want, the old DOS filenames... Thanx!! El-Truchahttp://www.truchasoft.tk[url="ftp://tsfc.homeftp.net"]ftp://tsfc.homeftp.net[/url]hotline://tsfc.ath.cx Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now