--- SGP wrote:
> I want to start a document by its type with file.runwait, that is I
> don't know in advance which application handles the document type -
> I want windows to decide that - and I really need to use
> file.runwait.
--- Sean wrote:
> file.runwait(0,"cmd","/c "++"your_document","","hide")
This solution assumes that you are using an NT-based operating system
such as Windows XP.
By changing �CMD� to the value of the ComSpec environment variable,
the solution will be more reliable.
I may completely contradict myself by offering you a different line
that will only work on Windows XP (which is what I'm using), but I
found that Sean's line didn't work for the files I tested. Here is
what I used instead:
File.RunWait(0, Env("ComSpec"), "/C Start /Wait " ++ MyDocument, "", "")
--
Alex Peters / Melbourne, Australia
PowerPro v4.1.00 / Windows XP
> Sean
> Attention: PowerPro's Web site has moved: http://www.ppro.org
> Yahoo! Groups Links
(PPTL)
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/