Microsoft KB Archive/58893

Macro to Bring Up a Standard Application in Word for Windows

PSS ID Number: Q58893 Article last modified on 12-10-1991

1.00 1.10 1.10a 2.00 WINDOWS

Summary: The following macro demonstrates a method of executing a standard DOS application from Word for Windows (assume that COMMANDW.PIF is a windowed command processor): SUB MAIN Shell “c:.pif”, 1 END SUB Note that the “1” parameter sets the window type. The MS-DOS Shell command executes the specified application under Microsoft Windows. It is equivalent to the File Run command in the Windows MS-DOS Executive. More Information: For more information on the WordBASIC Shell command, refer to pages 256-57 of the “Microsoft Word for Windows and OS/2 Technical Reference.”

Additional reference words: w4wmacro, 1.00 1.10, 1.10a 2.0 2.00