Hi

I want to include a open file dialog into my vbs / wsf, but without this
stupid Inputbox. It should be the way how we know it from windows. I know
how todo it with html but not how it has to be in vbs / wsf.

please help
chris

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Re: "open file" dialog by Aaron

Aaron
Mon Sep 01 08:53:11 CDT 2003

You can use the Common Dialog Control, but it is somewhat platform specific,
if your wsf is guaranteed to run on w2k or later os' then you can use the
CreateObject method and the object reference element with this PROGID:
"MSComDlg.CommonDialog" . This has various aspects of funtionality ranging
from the file system to fonts and printers. Use the object browser in your
IDE to reference %WinDir%\system32\comdlg32.ocx. TypeLib for this control is
"{F9043C88-F6F2-101A-A3C9-08002B2F49FB}" Hope This Helps. If you are going
to use this on systems that do not have this control available there is a
cabinet available from microsoft. These resources may assist you in using
the Common Dialog Control.

Flags Property (Color Dialog) (CommonDialog ControlCommonDialog Control)
See Also Example Applies To
http://msdn.microsoft.com/library/en-us/cmdlg98/html/vbproflagscolor.asp

Enhance Your Apps with Common Dialogs: Part I (Microsoft Office and VBA
Developer 2000)
MSDN Library - Periodicals - 2000. Excerpt: This article may contain URLs
that were valid when originally published, but now link to sites or pages
that no longer exist.
http://msdn.microsoft.com/library/en-us/dnovba00/html/commondialogsparti.asp

HelpCommand Property (CommonDialog ControlCommonDialog Control)
href="http://msdn.microsoft.com/library/en-us/cmdlg98/html/vbprohelpcommand.
asp"
See
http://msdn.microsoft.com/library/en-us/cmdlg98/html/vbprohelpcommand.asp

Flags Property (Print Dialog) (CommonDialog ControlCommonDialog Control)
See Also Example Applies To
http://msdn.microsoft.com/library/en-us/cmdlg98/html/vbproflagsprint.asp

Flags Property (Font Dialog) (CommonDialog ControlCommonDialog Control)
See Also Example Applies To
http://msdn.microsoft.com/library/en-us/cmdlg98/html/vbproflagsfont.asp

Flags Property (Open, Save As Dialogs) (CommonDialog ControlCommonDialog
Control)
See Also Example Applies To
http://msdn.microsoft.com/library/en-us/cmdlg98/html/vbproflagsfile.asp

Coverage Engine Object (Microsoft Visual FoxPro)
This formset is not a subclass of _formset, therefore the Coverage Profiler
runs in Visual FoxPro 5.0 and later.
http://msdn.microsoft.com/library/en-us/dv_foxhelp/html/newcoverage_engine_object.asp

Coverage Engine Object (Visual FoxPro)
This formset is not a subclass of _formset, therefore the Coverage Profiler
runs in Visual FoxPro 5.0 and later.
http://msdn.microsoft.com/library/en-us/fox7help/html/newcoverage_engine_object.asp

"Christian Roost" <christianroost@hotmail.com> wrote in message
news:oprutoi1kobckkj5@news.cis.dfn.de...
> Hi
>
> I want to include a open file dialog into my vbs / wsf, but without this
> stupid Inputbox. It should be the way how we know it from windows. I know
> how todo it with html but not how it has to be in vbs / wsf.
>
> please help
> chris
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/



Re: "open file" dialog by mayayana

mayayana
Mon Sep 01 10:21:09 CDT 2003

There are two ways that can be used on any system. Neither
works quite so smoothly as the normal File Open but both work
fairly well.
http://www.jsware.net/jsware/scripts.html

See the "Collection of Useful Classes" link (Class Pack download)
It contains 2 file browsing classes:

1) Writes a webpage with a browse button. Calls IE to open it in a small,
stripped-down browser window. When the Browse button is clicked IE
opens a File Open window. When a file is selected the IE window closes
and the file path is returned. So it's a normal File Open window but with
the addition of an extra dialogue.

2) Opens a BrowseForFolder window that also displays files.
Returns the path of item chosen and whether it was a file or folder.

If you need more options, such as pre-setting the file filter, you can
use a component; but that would need to be installed on any target
system.
--
--
Christian Roost <christianroost@hotmail.com> wrote in message
news:oprutoi1kobckkj5@news.cis.dfn.de...
> Hi
>
> I want to include a open file dialog into my vbs / wsf, but without this
> stupid Inputbox. It should be the way how we know it from windows. I know
> how todo it with html but not how it has to be in vbs / wsf.
>
> please help
> chris
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/



Re: "open file" dialog by Richard

Richard
Mon Sep 01 12:23:58 CDT 2003

Christian Roost wrote:

> I want to include a open file dialog into my vbs / wsf, but without this
> stupid Inputbox. It should be the way how we know it from windows. I know
> how todo it with html but not how it has to be in vbs / wsf.

Hi,

I didn't track down the links the others gave, so this may be redundant, but
the link below is a program demonstrating a file open dialog using Internet
Explorer.

http://www.rlmueller.net/IE%20Open.htm

--
Richard
Microsoft MVP Scripting and ADSI
HilltopLab web site - http://www.rlmueller.net
--