willwatters Posted October 12, 2005 Share Posted October 12, 2005 How do I open the following file: H:\Visio Viewer Test\VisioTestTemplate.vsd Link to comment Share on other sites More sharing options...
BigDod Posted October 12, 2005 Share Posted October 12, 2005 How do I open the following file: H:\Visio Viewer Test\VisioTestTemplate.vsdTryRun(@comspec & ' /c "H:\Visio Viewer Test\VisioTestTemplate.vsd"','',@sw_hide)Assuming that your file associations are correct. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
w0uter Posted October 12, 2005 Share Posted October 12, 2005 (edited) shouldnt it be Run(@comspec & ' /c start "H:\Visio Viewer Test\VisioTestTemplate.vsd"','',@sw_hide) Edited October 12, 2005 by w0uter My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
BigDod Posted October 12, 2005 Share Posted October 12, 2005 shouldnt it beRun(@comspec & ' /c start "H:\Visio Viewer Test\VisioTestTemplate.vsd"','',@sw_hide)Your version just brings up a command prompt on my computer Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
w0uter Posted October 12, 2005 Share Posted October 12, 2005 both seem to work on my pc. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Geert Posted October 12, 2005 Share Posted October 12, 2005 This method uses the file association: $file = "H:\Visio Viewer Test\VisioTestTemplate.vsd" Run("rundll32 url.dll, FileProtocolHandler " & $file) The code is normaly used for opening a website: $url = "http://www.autoitscript.com" Run("rundll32 url.dll, FileProtocolHandler " & $url) Link to comment Share on other sites More sharing options...
w0uter Posted October 12, 2005 Share Posted October 12, 2005 actually @comspec also uses fileassoc's so does "ShellExecute" & "Shell.Application" My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Skruge Posted October 13, 2005 Share Posted October 13, 2005 Your version just brings up a command prompt on my computerIf quoted strings are passed to Start, it'll use them as a window title for a new command prompt. START ["title"][/Dpath] [/MIN] [/MAX] ...etc... "title" Title to display in window title bar.@ w0uter: I usually add empty quotes to circumvent this behavior. Compare these two lines:Run(@comspec & ' /c start "C:\Program Files"',"",@sw_show) Run(@comspec & ' /c start "" "C:\Program Files"',"",@sw_show) [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now