Re: Windows File Open/Save Dialog

Tech-Archive recommends: Fix windows errors by optimizing your registry



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)
.



Relevant Pages

  • A Christmas Present (that you didnt ask for)...
    ... it is written in vbs using api's called by DynaWrap to create the graphical interface. ... It has been mentioned in the scripting ng's for years and is frequently suggested for use when somebody wishes to do something outside the realm of "pure" script. ... It is possible to declare-and-call an api from script, but you must use a third-party control to do so, or else write one yourself. ... Private Function RepaintProgBar ...
    (microsoft.public.scripting.vbscript)
  • FYI: TS client script
    ... for TS on the machine running the script, ... the web control class was not found; ... Dim m_Tracing, m_TraceStream ... Function ArgString(ByVal argName, ByVal defaultValue) ...
    (microsoft.public.win2000.termserv.clients)
  • FYI: TS client script
    ... for TS on the machine running the script, ... the web control class was not found; ... Dim m_Tracing, m_TraceStream ... Function ArgString(ByVal argName, ByVal defaultValue) ...
    (microsoft.public.windows.terminal_services)
  • Re: Difficulties in deriving a truly universal GUI Scripting Language
    ... What the caret ... It could also control the mouse and the keyboard. ... From this information, the script could ... You would merely have to re-examine the screen display after every input ...
    (microsoft.public.vc.mfc)
  • Re: UCOMIStream, MSHTML and WebBrowser control Persistence Problem
    ... If I navigate to a file ... > the same html I cannot call into the same dhtml script function. ... It is best to retrieve it from the control each time ...
    (microsoft.public.dotnet.languages.vb)