Tip: How to clear/clean your history in Directory Opus

Share tutorials on using and configuring Opus.
jefff
Registered Opus Pro User
Posts: 14
Joined: 12 Sep 2014, 11:45
OS: Windows 7 64-bit
Opus: Directory Opus 11
I thought this might be helpful for others...

You can remove all traces of your history by removing the following files:

Code: Select all

C:\Users\[User Name]\AppData\Local\GPSoftware\Directory Opus\State Data\dupe.osd
C:\Users\[User Name]\AppData\Local\GPSoftware\Directory Opus\State Data\find.osd
C:\Users\[User Name]\AppData\Local\GPSoftware\Directory Opus\State Data\ftplast.osd
C:\Users\[User Name]\AppData\Local\GPSoftware\Directory Opus\State Data\lastrename.osd
C:\Users\[User Name]\AppData\Local\GPSoftware\Directory Opus\State Data\sync.osd
C:\Users\[User Name]\AppData\Local\GPSoftware\Directory Opus\State Data\MRU\*.*

You can also add these filters to CCleaner to automatically clean your history.

NOTE: If you have any problems deleting the files, close dopus.exe and dopusrt.exe first.

To do that in a batch file, you can save the following code into a text file named dopus_clean_history.bat and then double click it. Make sure the path to Directory Opus matches your path.

Code: Select all

@echo off

REM *** Close Directory Opus and DOpusRT.exe ***
"C:\Program Files\GPSoftware\Directory Opus\DOpusRT.exe" /CMD Close PROGRAM
"C:\Program Files\GPSoftware\Directory Opus\DOpusRT.exe" /dblclk=off

REM *** Pause for 3 seconds ***
ping 1.1.1.1 -n 1 -w 3000 > nul

REM *** Delete the history files ***
del /F /Q "%userprofile%\AppData\Local\GPSoftware\Directory Opus\State Data\dupe.osd"
del /F /Q "%userprofile%\AppData\Local\GPSoftware\Directory Opus\State Data\find.osd"
del /F /Q "%userprofile%\AppData\Local\GPSoftware\Directory Opus\State Data\ftplast.osd"
del /F /Q "%userprofile%\AppData\Local\GPSoftware\Directory Opus\State Data\lastrename.osd"
del /F /Q "%userprofile%\AppData\Local\GPSoftware\Directory Opus\State Data\sync.osd"
del /F /Q  /S "%userprofile%\AppData\Local\GPSoftware\Directory Opus\State Data\MRU\*.*"

echo "Directory Opus history has been deleted."


I hope that Directory Opus can add a "Clear History" menu item or option in future versions.
Last edited by jefff on 29 Sep 2014, 15:33, edited 5 times in total.

User avatar
leo
GPSoftware
Posts: 36498
Joined: 07 Nov 2004, 01:30
OS: Windows 10 64-bit
Opus: Directory Opus 12
Location: London, UK
Contact:
Don't kill the process using Task Manager, unless you want to corrupt your configuration data.

Use the proper Exit option instead: viewtopic.php?t=4791

You should not need to exit dopusrt.exe at all, but if you do there are clean ways to ask it to close itself as well.

jefff
Registered Opus Pro User
Posts: 14
Joined: 12 Sep 2014, 11:45
OS: Windows 7 64-bit
Opus: Directory Opus 11
Leo, you are so genius, so helpful, and can usually answer any difficult question just off the top of your head. On this one, I've been doing this for over 5 years and it's never caused any problem at all (and I cleared my history a lot!!). Of course, I always exited properly but killed dopusrt.exe in Task Manager. If you don't, then CCleaner will not delete the files and they will still be there.
Last edited by jefff on 29 Sep 2014, 15:08, edited 1 time in total.

User avatar
leo
GPSoftware
Posts: 36498
Joined: 07 Nov 2004, 01:30
OS: Windows 10 64-bit
Opus: Directory Opus 12
Location: London, UK
Contact:
Ignoring CCCleaner, and deleting the files by hand, which file(s) do you find dopusrt.exe locks you out of deleting?

dopusrt.exe has zero files open on my machine.

jefff
Registered Opus Pro User
Posts: 14
Joined: 12 Sep 2014, 11:45
OS: Windows 7 64-bit
Opus: Directory Opus 11
I just tested. CCleaner and other history cleaners won't clear them without the process closed but I can manually delete them in Directory Opus itself.

dopo
Posts: 12
Joined: 27 Jul 2015, 15:42
OS: Other (New/Beta)
Opus: Directory Opus 11
It better to use
"%LOCALAPPDATA%\GPSoftware\Directory Opus\State Data\" than to use
"C:\Users\[User Name]\AppData\Local"

Since the latter you have to change it per user, changed of username or reformat of OS install.

r0n
Registered Opus Pro User
Posts: 16
Joined: 30 Nov 2016, 06:51
OS: Windows 7 64-bit
Opus: Directory Opus 12
Sorry to kick this topic up, but are the files and folder specified by the topic starter still valid?
Or are there other files/folders that need to be deleted to clean the history.

EDIT:
Can "recent.osd" might also be deleted to clear history?

I wanted to clear the items below in the favorites list (when you click the star icon), I thought they where history related items.
But when clicking on the star icon (favorites) and then "Edit Favorites" and then disabling "Smart Favorites", the below items where finally gone. (I might have accidentally enabled "Smart Favorites" when going through the settings menu).
I thought I just put it here for other other beginners.

User avatar
leo
GPSoftware
Posts: 36498
Joined: 07 Nov 2004, 01:30
OS: Windows 10 64-bit
Opus: Directory Opus 12
Location: London, UK
Contact:
r0n wrote:Sorry to kick this topic up, but are the files and folder specified by the topic starter still valid?

From a quick look, they're still valid.


Or are there other files/folders that need to be deleted to clean the history.

That depends what you want to clear.

You can see there are lots of other config files in the config folders. Almost all are in text/xml format so you can open them in Notepad to see the kind of data they contain and if you'd like to clear it. Or if there's a particular thing you want to clear (e.g. the name of a folder) you could do a contents search to find all config files containing that item.

Everything under the /dopuslocaldata folder is non-essential and can be deleted if you wish. You may lose window positions or remembered checkbox states in some dialogs for doing things, but not any actual Preferences settings.

Under the /dopusdata folder are things that are typically saved explicitly, rather than implicitly, but there may still be things there you want to clear out at some point. Most of them can be managed via the Preferences UI or similar, however, so you would not normally need to edit/delete most of the things in there by hand.

These guides talk more about the config folders and the files within them:



Can "recent.osd" might also be deleted to clear history?

It contains recently visited folders. It can be deleted if you want to clear those.

You can also turn off the recent list under Preferences / Favorites and Recent / Recent List to stop them being saved.

r0n
Registered Opus Pro User
Posts: 16
Joined: 30 Nov 2016, 06:51
OS: Windows 7 64-bit
Opus: Directory Opus 12
Thank you very much for this!


Return to “Tutorials”