Discussion:
command/widget to open file browse window?
(too old to reply)
Eric Beasley
2005-09-13 17:07:03 UTC
Permalink
In my app I have a text box where the user can enter a network path to a
folder where pictures are stored. I'd like to have a button next to that
text-box that will open up a standard Windows Explorer window at that
location. (so the user could then view his/her pictures, edit, delete pics,
etc..) Is there a command or widget that will do this? Thanks!
Rush Strong
2005-09-13 19:35:43 UTC
Permalink
Try the GETFILE() command.

- Rush
Post by Eric Beasley
In my app I have a text box where the user can enter a network path to a
folder where pictures are stored. I'd like to have a button next to that
text-box that will open up a standard Windows Explorer window at that
location. (so the user could then view his/her pictures, edit, delete pics,
etc..) Is there a command or widget that will do this? Thanks!
Eric Beasley
2005-09-13 21:29:35 UTC
Permalink
Rush, the GETFILE() command doesn't seem to take a path as a file location.
I'm looking to be able to open a standard Windows XP file browsing session,
just like as if you had clicked on "my computer" and drilled down to a
specific folder. In fact, I'd even like this file window to stay open after
my app closes. Using a standard Windows file window, therefore, is my best
option - if I can only get it to work!
Post by Rush Strong
Try the GETFILE() command.
- Rush
Post by Eric Beasley
In my app I have a text box where the user can enter a network path to a
folder where pictures are stored. I'd like to have a button next to that
text-box that will open up a standard Windows Explorer window at that
location. (so the user could then view his/her pictures, edit, delete pics,
etc..) Is there a command or widget that will do this? Thanks!
Eric Beasley
2005-09-13 21:47:27 UTC
Permalink
Aha! A friend of mine just figured this out.
lcTmp=THISFORM.txtMyTextBox.VALUE
!explorer &lcTmp

Thanks Rush.
Post by Rush Strong
Try the GETFILE() command.
- Rush
Post by Eric Beasley
In my app I have a text box where the user can enter a network path to a
folder where pictures are stored. I'd like to have a button next to that
text-box that will open up a standard Windows Explorer window at that
location. (so the user could then view his/her pictures, edit, delete pics,
etc..) Is there a command or widget that will do this? Thanks!
Craig Farrel
2005-11-19 03:56:03 UTC
Permalink
Hi Eric,
I have a question about this. How can I prevent the "WEB" version of the
explorer window from opening when I want the "CLASSIC" view? The idea is to
prevent access to the other directories commonly seen in the WEB BAR on the
left side of explorer window such as Network Neighborhood, My Computer, etc.

Thanks in advance.
Craig Farrel
Post by Eric Beasley
Aha! A friend of mine just figured this out.
lcTmp=THISFORM.txtMyTextBox.VALUE
!explorer &lcTmp
Thanks Rush.
Post by Rush Strong
Try the GETFILE() command.
- Rush
Post by Eric Beasley
In my app I have a text box where the user can enter a network path to a
folder where pictures are stored. I'd like to have a button next to that
text-box that will open up a standard Windows Explorer window at that
location. (so the user could then view his/her pictures, edit, delete pics,
etc..) Is there a command or widget that will do this? Thanks!
Alex Feldstein
2005-09-13 21:16:33 UTC
Permalink
On Tue, 13 Sep 2005 10:07:03 -0700, Eric Beasley
Post by Eric Beasley
In my app I have a text box where the user can enter a network path to a
folder where pictures are stored. I'd like to have a button next to that
text-box that will open up a standard Windows Explorer window at that
location. (so the user could then view his/her pictures, edit, delete pics,
etc..) Is there a command or widget that will do this? Thanks!
Look at the

GETPICT()
GETFILE()

functions.



Alex Feldstein
________________________________
Microsoft Visual FoxPro MVP
Please respond in the public groups so that everybody
can benefit from the exchange.
Favor de responder en los foros públicos asi todos se benefician.
(address munged with ROT-13)

Blog: http://www.bloglines.com/blog/AlexFeldstein
Website: http://feldstein.net
Dan Freeman
2005-09-13 21:29:26 UTC
Permalink
GetFile() is what you need, I think. Instead of asking the user to type a
directory, let 'em go find it. It has an option button to set the same view
they have in Windows Explorer, and allows moving/deleting.

Or, you could do something like this:

RUN /N explorer.exe "c:\whatever\path\they\entered"

Dan
Post by Eric Beasley
In my app I have a text box where the user can enter a network path
to a folder where pictures are stored. I'd like to have a button next
to that text-box that will open up a standard Windows Explorer window
at that location. (so the user could then view his/her pictures,
edit, delete pics, etc..) Is there a command or widget that will do
this? Thanks!
Loading...