Re: Windows File Open/Save Dialog
- From: mr_unreliable <kindlyReplyToNewsgroup@xxxxxxxxxxx>
- Date: Thu, 25 Sep 2008 12:59:30 -0400
Jeff C wrote:
Is there a way to insert a call for the Windows File Open/Save As Dialog so that a user could invoke the process manually rather than leaving the process in the task scheduler?
hi Jeff,
There are at least three ways to do this.
Way 1: The usual recommendation you get here is to use a hidden
copy of IE, and implementing an input tag with type = file. This
will get you an open dialog and with some scripting you can allow
the user to select a file. There is also some mention of using
the OLECMD SaveAs. You can use Google Advanced Group search to
find sample code. Start here:
http://groups.google.com/group/microsoft.public.scripting.vbscript/browse_thread/thread/608124e0511dface/6d97b029d452bc86?lnk=st&q=#6d97b029d452bc86
Way 2: There are various actX objects around, capable of showing
the open and saveas dialogs. If you don't mind using a 3rd-party
control, then this is probably the easiest way. Otherwise, you
could write the control yourself. I wrote one such control, and
it only took a few lines of (vb) code.
Way 3: (for hard-core propeller-head geeks only). You could use
the system api directly from script, to get the open and saveas
dialogs. If you are interested in this approach, look up
DynaWrap and/or DynaCall for calling api's directly from script.
cheers, jw
____________________________________________________________
You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
the answers will be applicable to the questions)
.
- Follow-Ups:
- uh-oh, forgot one
- From: mr_unreliable
- uh-oh, forgot one
- References:
- Windows File Open/Save Dialog
- From: Jeff C
- Windows File Open/Save Dialog
- Prev by Date: Re: change user password on remote computer
- Next by Date: Re: PC Name and MAC Addresses
- Previous by thread: Windows File Open/Save Dialog
- Next by thread: uh-oh, forgot one
- Index(es):
Relevant Pages
|