ExitWindows

Syntax

ExitWindows

Remarks

In Windows 3.x, closes all open applications and quits Windows. In Windows 95 and Windows NT, ExitWindows logs the current user off. ExitWindows does not save changes or prompt you to save changes in Word documents; it does prompt you to save changes in other open Windows-based applications.

ExitWindows can be useful if you have an MS-DOS batch file that starts Word and runs a macro using the /mmacroname startup switch. By including ExitWindows as the final instruction in the macro, you restore control to the MS-DOS batch file. If you are running a batch file that starts Word from a command prompt running within Windows 3.x, Windows 95, or Windows NT, use FileExit 2 instead of ExitWindows.

On the Macintosh, ExitWindows is not available and generates an error.

See Also

FileExit, FileQuit