GP SoftwareTwitter
Opus FAQsManualCommandsObjects

How to Exit Directory Opus


#1

By default, Opus stays running in the background even when none of its windows are open. This is for a few reasons:

  • It means you can very quickly open new Opus windows which is useful if you frequently open windows to do a job and then close them when done.
  • It means System-Wide Hotkeys still work when no windows are open.
  • It means Floating/Docked Toolbars work when no windows are open.

To exit Opus temporarily you can use:

  • The File menu:

  • The jump-list (Windows 7):


  • The tray icon (if enabled):


If you want Opus to exit automatically when no windows are open (i.e. you don't care about system-wide hotkeys, floating toolbars etc.), turn on this option:



Lister won't open on startup (portable mode)
Multiview doesn't stay configured
Dopus Crashing System in Vista
Lister won't open on startup (portable mode)
Support for 7zip-Zstandard codecs in archives
Fix for WMV issues (Was: DOpus Crashes Intermittently)
High processor usage
Startup folder always My Computer
My "Check for program updates" does not do anything
Time to show My Computer after boot
Time to show My Computer after boot
Portable and PC Version
Why no Vista style, what have I done?
USB configuration export
New Docs/ActiveX plugin
Runas
Startup files
Startup files
Startup files
Removing a Flash Drive
FTP no longer shows directory list
Cannot delete file. Cannot read from the source file or disk
How to 'Forget' RAR Password?
Shutdown - Is There A Way?
[Bug ?] Opus9's is case sensitive for extention icon
Directory Opus 11 - Cannot send command to application error
How to backup or locate your Opus configuration (Simple)
DOpus Needs To Be Started Twice Under Vista
Windows shortcut Key in Vista
DO11: Folder Labels
DO crashes every time I restart of log off (version 10+11)
Directory Opus 11 - time for Date Modified
Blank Smart Favorites
DO11: Reading Rar not working
DO11: Reading Rar not working
Folder display bug (again)
FTP bookmarks
DO11: Tab Groups
Problem creating New Library
Crashes on 64 bit XP machimes
DO11: Update Tips
DO11: Changing PSD preview mode loses previews
DO11: Changing PSD preview mode loses previews
Creating a Collection within a Collection: no response
Unit name
Crash right-clicking ThisPC
Norton Internet Security 21 "Scan Now"
Emptying The temp folder after decompressing RAR Archives
File Exit
Things I dislike about native My Computer display
DOpus keeps opening listers with fixed folders not last used
Thrashing disk
Network places that should not appear
Missing folder icons
Problem opening RAR files within Opus
Icons disappear in Directory Opus
Label and Status assignments break when sharing between two computers
Dopus.queuedfunction crash 0xc0000005
Refreshing network drive letters
Slow file processing mobile device
Files/Folders Icons of Dropbox's Folder are Gone
Icons for archives
Error in dopus_fileinfo (10.5.0.6 (beta))
Program Error Encountered problem
Samsung Note 2 mobile won't show files
Set Dopus back to defaults
Set Dopus back to defaults
MTP external SD card folders appear twice in tree
Inconsistent naming of some external HDDs
Inconsistent naming of some external HDDs
Inconsistent naming of some external HDDs
MTP in Folder Tree view
Crash When Browsing Large Folders
Gradual slowing of Opus 10.5.0.0
Inconsistent naming of some external HDDs
Inconsistent naming of some external HDDs
Slow folder listing with SolidWorks files
Frequent Lockups, empty tabs (iCloud related?)
Memory Usage Goes sky High (video codec?)
DOpus displays old icon for filetype
Left Folder Tree Pane hangs Dopus 10.2.0.5
Directories open slowly
Question re USB export
Disappearing icons
Remember Where Left Off in Previous Session
Change refresh on drive mounted via linked directory
Opus not detecting file changes after IP broadcast
Duplicate file finder tutorial
What have I done? Dimensions not showing
Registration Certificate installation problems
FTP Address Book exporting/importing command
High memory and CPU usage during VS2010 unit tests
Devices with Removable Storage are not sometimes displayed
12.3.3 beta occasionally crashes when opening a new window
Control Panel and DO 10
Autodesk Context Menu
Autodesk Context Menu
Mouse wheel goes three columns at a time in list view
Dopus using 7GB of RAM
Removing license from computer without admin rights
DOpus pinned to taskbar not opening changed setup lister
Reopen last closed listers
Recover FTP addressbook from system backup
Incorrect Icon Overlay
Problem with latest version Directory Opus 10.0.4.4 (beta)
10.0.4.0 100 percent CPU Utilization
Drive Icons not showing in Dierctory Opus
USB thumbdrive not visible
KODC theme... right clicking in views is tough to read
Thumbnail size override
FTP Doesn't Work
Dopus not showing virtual drives
DO 10 causes high MSTSC cpu usage
Wrong drive icon when using different usb devices
Portable replaces installed settings [possibly user error]
Automatic folder size calculation
How to close the program
Unmounted virtual drive still showing in folder tree
How to recover from corrupted files
Are globals really globals?
SSL error with version 10.0.2.0
Default Lister problem on multi-monitor set-up
Copying Workstation files to NAS Drive (UAC) issue
Save the current folder format is broken in version 12.3.1
CPU usage increase
When I create a new txt the extension is TXT
Copy (lister context menu) settings to another opus user?
Label assignments based on script columns do not work after reloading Opus
Overlay icons not hidden in tree and some still show in list
Volume Label Not Displayed on CD/DVD
Volume Label Not Displayed on CD/DVD
Netwok unavailabe in DO
Exiting dopus -> process remains -> problem
"Open listers that were last open..." problem on v10
SFTP Username error after changing username
"Open listers that were last open..." problem on v10
Get rid of new toolbar and menu after installing v12
Dimensions column not displaying data
DO12 - Very slow to launch new lister after last one closed
Synchronization upload fails
DO11 - Windows 10 - Unable to Eject Western Digital External Drive
Problems on Windows restart
Path format entities edit Folder path
Environment Variable Changes via WM_SETTINGCHANGE not propagating
How to edit zip/rar archives?
Images toolbar
DO11: Open new lister as different user
Adding to Archives
I have a question about Folder renaming speed and time
Command doesn't work anymore
Scripts (Perl): How To: Setup ActivePerl for scripting in Opus 11
Start up time - into minutes
Can't restore configuration without overwriting bookmarks
DO completey unresponsive for a full minute on startup
Removed Folders
File Preview Settings?
A Horizontal Line Across My Monitor
Collections Import-Export code with subfolders
FTP failure
FTP all of a sudden stopped working
How to find components causing memory leaks
DOPUS 11.x crashes when starts
Ftp does not work
Crash, exit or high CPU when viewing certain directories
"Devices with Removable Storage" does not Refresh
Changes to folders are not being detected
Switching beteen Pro and Lite
USB Dongle issue
Create your own Folder Icon Change toolbar [UPDATED: 2.0]
File containing preferences
No icons on detailed view
For what is selection box in prefs / toolbars / scripts?
Lister Colours
Mysterious directory Opus start with script function
DOpus 11 crashes
HD to USB3.0 transfers
Opus using 7GB of RAM part 3
Copying several files from the phone - not working
Dopus stops opening folders
Problem with SFTP connection
File List Automatic Update
Dopus stops opening folders
Synchronized Configurations
DOpus fonts change when Windows scaling is changed
Opus 11.12.1 and Meta data
Problems with Dopus on usb-stick
Problems with Dopus on usb-stick
Exit and Restart
How to change the language Opus uses
List of FAQs organised by topic
Installing Opus 11, and leaving Opus 10 in place
Perforce context menu only appears in Explorer
Using opus 10 config in opus 11
File viewer Shrinks Image when previewing while logged in remotely
V11.8 - Slow Search Problem
Always re-use a single window instead of opening new windows
Strange access error in a special situation (DirOpus 10)
SFTP site not displaying folders or files
Sluggish when working on files stored also in OneDrive
Directory Opus slow with Dropbox folders
Can't rename folder issue
Icons for each folder/file now disappear
Release Notes open every time I start DOpus 12.7
Tumasoft Preset Viewer Preview not work inside of DOpus but work in Explorer
Lister Theme not applied (dop 12.6)
Custom backups
DOPUS does not recognize and list all network devices
Tip: How to clear/clean your history in Directory Opus
Double-click on desktop does not launch Dopus lister
Reopen last closed listers
Directory Opus executables and hooks
Running USB on desktop with DO
Folders slow to open first time
Tip: How to clear/clean your history in Directory Opus
Dopus keeps running in processes even after closed
White bar blocking access to window controls and taskbars in Firefox and Adobe PDF
How to reinstall dopus on same computer with same settings
Dopus crashes when network folders not accessible
Bitlocker Refresh
OneDrive Icon in Folder Tree Always Shows Sync Problem
#2

If you want to exit Opus from a batch file or script, there are commands to do that.

Do not simply kill the DOpus.exe and DOpusRT.exe processes. There is no need to and it risks corrupting your config data. Instead, use the commands below, or the menu items shown above, to cleanly exit Opus.

  • Exiting and restarting Opus from another program or installer:

    Opus supports the Restart Manager API, so programs and installers should use that if they need to stop and start Opus programmatically, the same as they would for Windows Explorer.


  • Cleanly exiting Opus from a batch or script:

    The RestartViaManager command-line tool can be used to shutdown and immediately restart DOpus.exe (but not DOpusRT.exe) via the Restart Manager API, if that is all you need to do. The tool runs synchronously so you will know Opus has finished restarting when the tool completes (unless there was an error).

    For more complex needs, read on.

    If DOpusRT.exe is running to provide desktop double-click functionality, tell it to exit with this command:

    "C:\Program Files\GPSoftware\Directory Opus\DOpusRT.exe" /dblclk=off

    (Note that launching Opus itself will also launch DOpusRT.exe if needed, so there is not normally any need to re-launch DOpusRT.exe manually.)


    To exit DOpus.exe itself, run the Close PROGRAM command via DOpusRT.exe (this is not a typo; you use DOpusRT.exe to send the command, not DOpus.exe):

    "C:\Program Files\GPSoftware\Directory Opus\DOpusRT.exe" /CMD Close PROGRAM

    Note that the commands above run asynchronously. They dispatch requests to Opus and then exit without waiting for the requests to complete. If you need to wait until Opus has completely stopped running then you will need some additional logic. Here is one way to do it in VBScript:

    ExitOpusAndWait.zip (750 Bytes)


  • Restarting Opus from a batch or script:

    If your script is running from an elevated context (UAC), you should restart Opus using DOpusRT.exe's /runopus argument, which ensures Opus does not run elevated:

    "C:\Program Files\GPSoftware\Directory Opus\DOpusRT.exe" /runopus

    Otherwise, how you choose to restart Opus depends on which windows (if any) you want to (re-)appear. If you run DOpus.exe with no arguments then a window will always appear, even if Preferences specifies that nothing should at startup. To suppress that behaviour, run DOpus.exe with the noautolister argument:

    "C:\Program Files\GPSoftware\Directory Opus\DOpus.exe" noautolister

Full information about the command-line arguments is in the manual.

Info about the different Opus EXE files is here.


Feature request - if process exists
Function to import config from file
DO 10 causes high MSTSC cpu usage