Common dialog for folder select 
Author Message
 Common dialog for folder select

From a script file I want to display a comon dialog type box that lets a user select a directory.  Whatever directory they select
will be what the rest of the script works with.

What would be the simplest way to accomplish this?  I have seen some examples that looked like overkill for what I need but I'll try
whatever works.

Thanks,
Joebob

--
To reply directly, replace the zero in my email address with the letter e.



Fri, 10 Jan 2003 03:00:00 GMT  
 Common dialog for folder select
On systems with Active Desktop, you can use the BrowseForFolder method of the Shell.Application
object.

Search the script repository for BrowseForFolder for examples...

Win32 Scripting [Clarence Washington]
http://cwashington.netreach.net
http://cwashington.netreach.net/script_repository/repository.asp
http://cwashington.netreach.net/script_repository/query.asp
http://cwashington.netreach.net/main_site/downloads
http://cwashington.netreach.net/script_repository/faqs.asp?topic=wmifaq
http://cwashington.netreach.net/script_repository/faqs.asp?topic=adsifaq

--
Michael Harris
MVP Scripting

From a script file I want to display a comon dialog type box that lets a user select a directory.
Whatever directory they select
will be what the rest of the script works with.

What would be the simplest way to accomplish this?  I have seen some examples that looked like
overkill for what I need but I'll try
whatever works.

Thanks,
Joebob

--
To reply directly, replace the zero in my email address with the letter e.



Fri, 10 Jan 2003 03:00:00 GMT  
 Common dialog for folder select
This would be for systems without Active Desktop.  Is there a way?
Quote:

> On systems with Active Desktop, you can use the BrowseForFolder method of the Shell.Application
> object.

> Search the script repository for BrowseForFolder for examples...

> Win32 Scripting [Clarence Washington]
> http://cwashington.netreach.net
> http://cwashington.netreach.net/script_repository/repository.asp
> http://cwashington.netreach.net/script_repository/query.asp
> http://cwashington.netreach.net/main_site/downloads
> http://cwashington.netreach.net/script_repository/faqs.asp?topic=wmifaq
> http://cwashington.netreach.net/script_repository/faqs.asp?topic=adsifaq

> --
> Michael Harris
> MVP Scripting


> From a script file I want to display a comon dialog type box that lets a user select a directory.
> Whatever directory they select
> will be what the rest of the script works with.

> What would be the simplest way to accomplish this?  I have seen some examples that looked like
> overkill for what I need but I'll try
> whatever works.

> Thanks,
> Joebob

> --
> To reply directly, replace the zero in my email address with the letter e.



Fri, 10 Jan 2003 03:00:00 GMT  
 Common dialog for folder select
"Roll your own" ActiveX server component (either in VB or VC++/ATL or J++ or Delphi or ...).

It's a pain because then you have to deploy...

--
Michael Harris
MVP Scripting

This would be for systems without Active Desktop.  Is there a way?

Quote:

> On systems with Active Desktop, you can use the BrowseForFolder method of the Shell.Application
> object.

> Search the script repository for BrowseForFolder for examples...

> Win32 Scripting [Clarence Washington]
> http://cwashington.netreach.net
> http://cwashington.netreach.net/script_repository/repository.asp
> http://cwashington.netreach.net/script_repository/query.asp
> http://cwashington.netreach.net/main_site/downloads
> http://cwashington.netreach.net/script_repository/faqs.asp?topic=wmifaq
> http://cwashington.netreach.net/script_repository/faqs.asp?topic=adsifaq

> --
> Michael Harris
> MVP Scripting


> From a script file I want to display a comon dialog type box that lets a user select a directory.
> Whatever directory they select
> will be what the rest of the script works with.

> What would be the simplest way to accomplish this?  I have seen some examples that looked like
> overkill for what I need but I'll try
> whatever works.

> Thanks,
> Joebob

> --
> To reply directly, replace the zero in my email address with the letter e.



Fri, 10 Jan 2003 03:00:00 GMT  
 Common dialog for folder select

Can't the Common Dialog control be set to browse just for a folder?  I know
you can use it via WSH with:

    Dim oObject
    Set oObject = CreateObject("MSComDlg.CommonDialog")
    oObject.showopen

I just can't remember the flag values that can be set to configure the
ShowOpen dialog.

--
Patrick Steele
(patrick_at_neovisionsystems_dot_com)
http://members.home.net/pjsteele/asp
Microsoft MCP


Quote:
> "Roll your own" ActiveX server component (either in VB or VC++/ATL or J++
or Delphi or ...).

> It's a pain because then you have to deploy...

> --
> Michael Harris
> MVP Scripting




Quote:
> This would be for systems without Active Desktop.  Is there a way?




Quote:
> > On systems with Active Desktop, you can use the BrowseForFolder method

of the Shell.Application
Quote:
> > object.



Sat, 11 Jan 2003 03:00:00 GMT  
 Common dialog for folder select
The Common Dialog control is a licensed control, but WSH doesn't have any mechanism to provide a
runtime license (like IE has).  So the control always thinks it's in design mode, meaning it works
only on machines with development packages that install the appropriate design time license keys in
the registry...  So depending on your audience, that *may* sufficient...

--
Michael Harris
MVP Scripting


Can't the Common Dialog control be set to browse just for a folder?  I know
you can use it via WSH with:

    Dim oObject
    Set oObject = CreateObject("MSComDlg.CommonDialog")
    oObject.showopen

I just can't remember the flag values that can be set to configure the
ShowOpen dialog.

--
Patrick Steele
(patrick_at_neovisionsystems_dot_com)
http://members.home.net/pjsteele/asp
Microsoft MCP


Quote:
> "Roll your own" ActiveX server component (either in VB or VC++/ATL or J++
or Delphi or ...).

> It's a pain because then you have to deploy...

> --
> Michael Harris
> MVP Scripting




Quote:
> This would be for systems without Active Desktop.  Is there a way?




Quote:
> > On systems with Active Desktop, you can use the BrowseForFolder method

of the Shell.Application
Quote:
> > object.



Sat, 11 Jan 2003 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Common dialog for folder select

2. Using Common Dialog control, possible to select folders and their associated files

3. Common select folder dialog?

4. Common Dialog OCX to select folder?

5. select a folder using Common Dialog

6. Common Dialog - Select a folder?

7. Folder Open Dialog - How to pre-select folder

8. common color select dialog

9. common dialog to browse for folders

10. Folder Selection for Common Dialog?

11. Common Dialog (get folder only)?

12. Q: Folder-only Common Dialog?

 

 
Powered by phpBB® Forum Software