Page 5 of 6
=
Posted: Fri Nov 10, 2006 12:56 pm
by spioner
del
Posted: Fri Nov 10, 2006 1:35 pm
by lexvictory
is this what you are looking for?
Code: Select all
file.s = OpenFileRequester("Select File", "", "Text Files|*.txt", 0)
Posted: Fri Nov 10, 2006 2:21 pm
by unhappy
spioner
Well.
Task: get short file names (MS-DOS) from long names (windows);
Right?
But: are u sure what for compleating this task you need PureBasic? May be you do it with cmd.exe or WSH?
And also i dont understand - what target of this operation?
may be you press WIN+R, type CMD.EXE and type there
or, if you dont want to read help, you may type
.
I think, what it give you some happy seconds )
Posted: Fri Nov 10, 2006 2:28 pm
by lexvictory
(if people have trouble reading unhappy's post, change the page encoding to Cyrillic (windows))
EDIT: or unicode (utf-8 )..... it changed after the edit for some reason.....
i bet u use internet explorer dont u unhappy?
del
Posted: Fri Nov 10, 2006 2:44 pm
by spioner
del
Posted: Fri Nov 10, 2006 2:49 pm
by lexvictory
like this?
Code: Select all
Result$ = GetPathPart(OpenFileRequester("Select File", "", "Text Files|*.txt", 0))
Re: =
Posted: Fri Nov 10, 2006 2:55 pm
by PB
> Name - known. File exist - known. Path - unknown. Task - get path.
See my old tip here:
http://www.purebasic.fr/english/viewtopic.php?t=3659
Posted: Fri Nov 10, 2006 3:00 pm
by unhappy
lexvictory wrote:(if people have trouble reading unhappy's post, change the page encoding to Cyrillic (windows))
EDIT: or unicode (utf-8 )..... it changed after the edit for some reason.....
i bet u use internet explorer dont u unhappy?
yes. i use IE.
what codepage you recommend for me?
Posted: Fri Nov 10, 2006 3:03 pm
by lexvictory
unhappy wrote:lexvictory wrote:(if people have trouble reading unhappy's post, change the page encoding to Cyrillic (windows))
EDIT: or unicode (utf-8 )..... it changed after the edit for some reason.....
i bet u use internet explorer dont u unhappy?
yes. i use IE.
what codepage you recommend for me?
well, i think firefox rules!
its just IE doesnt handle other languages very well sometimes..... (especially not when typing in Kirilica/Cyrillic)
with firefox, when u type in Cyrillic, it converts it to special html codes.....
del
Posted: Fri Nov 10, 2006 3:08 pm
by spioner
del
Posted: Fri Nov 10, 2006 3:09 pm
by unhappy
lexvictory wrote:with firefox, when u type in Cyrillic, it converts it to special html codes.....
i dont like firefox. its so complex for me. i like Maxthon - its very handy.
i rewrote my previous message in english (sorry for its roughness).
Re: =
Posted: Fri Nov 10, 2006 3:10 pm
by spioner
del.
Re: Result$ = GetPathPart(OpenFileRequester("Select Fil
Posted: Fri Nov 10, 2006 3:11 pm
by unhappy
spioner wrote:Result$ = GetPathPart(OpenFileRequester("Select File", "", "Text Files|*.txt", 0))
This persons seek... I want Computer itself seek.
what you think about this:
http://www.purebasic.fr/english/viewtop ... 025#170025 ?
i think you may parse file received by this way.
Re: =
Posted: Fri Nov 10, 2006 3:29 pm
by PB
> Do not work
Yes it does. Are you using the full version of PureBasic, or the demo? Try this:
Code: Select all
path$=Space(999) : r=SearchTreeForFile_("c:\","iexplore.exe",path$)
If r=0
MessageRequester("Error","File not found...",0)
Else
MessageRequester("Location",GetPathPart(path$),0)
EndIf
del
Posted: Fri Nov 10, 2006 3:39 pm
by spioner
del