Microsoft KB Archive/50577

Works: “Bad Command or Filename” Running Other Program

PSS ID Number: Q50577 Article last modified on 06-12-1996

2.00

MS-DOS

= SUMMARY =

If you receive a “Bad command or filename” error message when using the “Run Other Programs…” command to start an application program, try one of the following workarounds:

  Add the application program’s directory to the DOS path.   Write a DOS batch file that will reside in the Works directory and that switches the current directory to the application program directory, runs the program, and then makes the Works directory the current directory when the program is finished. Choose this batch file in “Run Other Programs…”. For example, to run Microsoft Flight Simulator from “Run Other Programs…”, create a DOS batch file, FS.BAT, which resides in the Works directory and contains the following DOS commands: CD(assuming FS is the directory where Flight Simulator is located) FS CD 

KBCategory: kbother KBSubcategory: dworkskb Additional reference words:

=
================================================================ Copyright Microsoft Corporation 1996.