opening WORD
opening WORD
Is it possible to open a window program such WORD with adequate commands inside a basic program?does it exist examples?
If that gives you problems by saying "This program cannot be run under DOS." (or something like that) try inserting START before the path.
Example:
Code: Select all
SHELL "START C:\YOURPATH\ANOTHERPATH\word.exe"
You can also add the WAIT command to wait until your program (in this case, word) stops before continuing with your program.
Example:
Code: Select all
SHELL "START C:\YOURPATH\ANOTHERPATH\word.exe REALTIME WAIT"
First, the name of Word's exec is Winword. exe
Then you have to specify the path using 8.3 names
This works for me:
Notice the micros~2 could be perhaps micros~1 or even micros~7 for you, depending on how many microsoft apps you have and the order you installed them.
Then you have to specify the path using 8.3 names
This works for me:
Code: Select all
shell "c:\progra~1\micros~2\office\winword.exe"
Returning to Basic
You need an exit from the shell. If it's not returning to QB automatically, you may need to run a batch file instead of WORD directly, then put the command "exit" at the end of the batch file. (...but I didn't actually try this).
--- Zim ---
--- Time flies like an arrow, but fruit flies like a banana ---
--- Time flies like an arrow, but fruit flies like a banana ---