SYNOPSIS
desktop
[
DESCRIPTION
desktop implements a simple command line version of
a virtual desktop switcher.
Most available virtual desktop systems have a graphical component to
switch the desktop --this allows you to switch using the command line.
Use the
desktop name
Options
-c -
creates a new desktop, with a given name. Newly created desktops have the explorer started on them automatically; this causes the new desktop to look like the console desktop when you initially log in. The start menu items then run, starting, for example, your default shell console window.
Note that desktop cannot delete a desktop: a desktop is deleted automatically by the system when all processes that have the desktop open have terminated. Since the explorer is running, this starts up several processes that must all be killed to delete the desktop. See ps to find the process IDs of these processes. However, since this is dangerous, there is no good way in 10/2016/2019/11/2022/2025 to determine an arbitrary process' desktop.
-l -
lists all the desktops on the current windowstation.
EXAMPLES
The following examples creates a file desktop.ksh that you can run from your profile.ksh using the . (dot) command:
desktop -c 0 desktop -c 1 alias d0="desktop 0" alias d1="desktop 1" alias def="desktop Default"
Then at the command line prompt, you can switch between the three desktops using the simple short aliases: d0, d1, and def.
DIAGNOSTICS
Possible exit status values are:
PORTABILITY
Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022. Windows Server 2025.
AVAILABILITY
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Commands:
- ps
PTC MKS Toolkit 10.5 Documentation Build 40.