[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Running Windows progs from Xy CMD



From Jim Eberle:

> How does one run a Windows program from the command in Xy 4 under
> Windows 95?

The command is:
dos/nv/x/z /c [path]EXECUTABLE.EXE

where the /nv/x/z switches go to DOS without prompting you to save files and
without giving a message about how to get back to XY; /c activates (I think)
COMMAND.COM or its equivalent; EXECUTABLE.EXE is the Windows program.

Thus, to get to the WordPad, you'd do this:
 dos/nv/x/z /c c:\"program files"\accessories\wordpad

Notice that the subdirectory "program files" has quotes because that's what
the Win95 flavor of DOS wants when there is a space in the pathname. Also
note the space before and after /c. Basically, it's just what you'd type in
the Run box by the Start button, but with the addition of "dos/nv/x/z /c ".

Your XPL program could also just switch you to the right directory and back,
or you could have a PATH statement in your Autoexec. RTM.

Good luck.

Tim Baehr
tbaehr@aol.com