Jump to content
Sign in to follow this  
proyb2

Run() work in WinXP but not WinME

Recommended Posts

proyb2

using AutoIT v3.1.1.88 (beta)

Run(@ProgramsDir & "\Microsoft Office\OFFICE10\WINWORD.EXE filename.doc")

Run(@ProgramsDir & "\Microsoft Office\OFFICE10\EXCEL.EXE filename.xls")

and

Run(@ProgramsDir & "\Microsoft Office\OFFICE10\POWERPNT.EXE filename.ppt")

of the three, I would get error exception that AutoIT cannot find the path office application B)

It been a problem that I wish it would work the first time in WinME

Edited by proyb2

Share this post


Link to post
Share on other sites
herewasplato

Does "start" work with ME:

Run(@ComSpec & " /c " & 'start c:\temp\test1.xls', "", @SW_HIDE)


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
proyb2

Does "start" work with ME:

Run(@ComSpec & " /c " & 'start c:\temp\test1.xls', "", @SW_HIDE)

erm, would this be possible to work on WinME? since my workplace using WinMe...

and @ComSpec is available on WinME as well? gotta test out the next 5 hours B)

it seem I could use "command.com /c start test.xls" or "command /c test.xls" in commandline too...thanks for the tip

Edited by proyb2

Share this post


Link to post
Share on other sites
proyb2

erm, it is possible to run the command...but how do it support filename with spacing?

Run(@ProgramsDir & "\Microsoft Office\OFFICE10\WINWORD.EXE filename.doc")

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.