Runwin not working - must be doing something wrong (OpenInsight Specific)
At 10 MAY 2001 12:12:09AM Jeff Ritchie wrote:
Ok have tried this
A=Utility("RUNWIN","EXCEL.EXE","")
and get an object error.
Have tried replacing EXCEL.EXE with the full path name:
c:\progra~1\micros~1\Office\Excel.exe
and still get the same error.
What the heck am l doing wrong here. All l want to do is click a button and execute Excel.
At 10 MAY 2001 09:00AM Donald Bakke wrote:
Jeff,
Can you be more descriptive about the object error? I'm wondering if your object code has been deleted or corrupted. FYI, I tried it myself on our system and it works just fine. My code is essentially the same as yours:
Path1=C:\Program Files\Microsoft Office\Office\EXCEL.EXE"
Path2=C:\Progra~1\Micros~2\Office\EXCEL.EXE"
rv=Utility("RUNWIN", Path2)
* rv=ZZ_Utility_DLL("RUNWIN", Path1)
I have two "Microsoft" folders underneath "Program Files" so my abbreviation is "~2" rather than "~1". The remmed out line is Sprezzatura's 32-bit Utility DLL. I wanted to test it for full path/filename support and it worked fine as well.
dbakke@srpcs.com
At 16 MAY 2001 02:10AM Jeff Ritchie wrote:
Thanks Don,
Don't know exactly what l was doing wrong, but type in your code (which matched what l was using) and now works???? Maybe misspelled something in the path statement.
Thanks for the help, now back to modifying the Windows exe l was testing by the call.