Hello guys,
Haven't been here for a long time, and now I have a question, cause searching google and forums didnt made a trick.
So, in this bottom code I got a last folder name (full path is previously written as a value to ini file, where array was used to show all values of a ini section named "Folders", as you see in script below) for my drop-down combo.
Then I have to open (presumably, with ShellExecute command) a folder that have been chosen from combobox. I have tryed to do so:
but succeeded just in few cases (some folders was just impossible to open, with stantard windows error, because full path was not given back!)
Please, can someone be so polite to help me in resolving this problem? Is there something like DirGetLongName ot smth (maybe someone will explain how to use _FullPath() here, because till the moment _FullPath() just returning the full path of ini file, not a full path of folder selected in Combo (prescripted as value for each folder in ini file)!
Maybe somebody will tell how to get back string replaced previously in my script with ??? This would be full path that I am searching for.
Thx a lot to all.
Haven't been here for a long time, and now I have a question, cause searching google and forums didnt made a trick.
So, in this bottom code I got a last folder name (full path is previously written as a value to ini file, where array was used to show all values of a ini section named "Folders", as you see in script below) for my drop-down combo.
[ autoit ]
Global $combo3 = GuiCtrlCreateCombo("", 10, 200, 100, "", $CBS_DROPDOWNLIST) Local $var3 = IniReadSection($instruction, "Folders") If @error Then MsgBox(4096, "", "INI file probably corrupted.") Else For $i = 1 To $var3[0][0] Global $sFullPath = $var3[$i][1] Global $sLastFolder = StringRegExpReplace($sFullPath, "(.+?\\)*(.+?)(\\.*?(?!\\))", "$4") GuiCtrlSetData(-1, $sLastFolder) Next EndIf
Then I have to open (presumably, with ShellExecute command) a folder that have been chosen from combobox. I have tryed to do so:
[ autoit ]
but succeeded just in few cases (some folders was just impossible to open, with stantard windows error, because full path was not given back!)
Please, can someone be so polite to help me in resolving this problem? Is there something like DirGetLongName ot smth (maybe someone will explain how to use _FullPath() here, because till the moment _FullPath() just returning the full path of ini file, not a full path of folder selected in Combo (prescripted as value for each folder in ini file)!
Maybe somebody will tell how to get back string replaced previously in my script with
[ autoit ]
Thx a lot to all.