TC won't delete a Canon RAW file if it was opened recently
Moderators: Hacker, petermad, Stefan2, white
Re: TC won't delete a Canon RAW file if it was opened recently
I guess an anti-virus software could be interfering here.
Regards
Dalai
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: TC won't delete a Canon RAW file if it was opened recently
In both cases.white wrote: 2022-08-18, 13:03 UTC But when does it happen? Only if you double click the file in TC or right click the file in TC and choose Open with?
I always use Shift-Del but deleting with Del to recycle bin doesn't work either. Right click + Delete when in TC also doesn't work. Deleting in File Explorer does work.white wrote: 2022-08-18, 13:03 UTC Do you use Windows recycle bin? What happens if you use Shift+Del or disable recycle bin?
What happens if you enable "Use Explorer delete method"?
Re: TC won't delete a Canon RAW file if it was opened recently
I don't use any antivirus protection (unless some is enabled by default). I can try to disable the default Windows protection (firewall etc.) but I don't think it's related.
This is a brand new Win 11 installation with just a couple of programs, I thought the issue would vanish but no, it's still there

Re: TC won't delete a Canon RAW file if it was opened recently
2Mr.Scully
Windows Defender is enabled by default. Like any such scanner, it can lock files while it scans them.
Regards
Dalai
Windows Defender is enabled by default. Like any such scanner, it can lock files while it scans them.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: TC won't delete a Canon RAW file if it was opened recently
I have Defender running all the time and there is no problem deleting the sample file.Dalai wrote: 2022-08-18, 15:15 UTC 2Mr.Scully
Windows Defender is enabled by default. Like any such scanner, it can lock files while it scans them.
Regards
Dalai
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: TC won't delete a Canon RAW file if it was opened recently
2Horst.Epp
Anti-virus software can be configured differently, it can have excludes and so on. And there's a "feature" called SmartScreen built into Defender that connects to MS servers to verify files.
I'm not saying it's because of Defender. It could also be caused by a shell extension.
Regards
Dalai
Anti-virus software can be configured differently, it can have excludes and so on. And there's a "feature" called SmartScreen built into Defender that connects to MS servers to verify files.
I'm not saying it's because of Defender. It could also be caused by a shell extension.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: TC won't delete a Canon RAW file if it was opened recently
Is it possible to launch FastStone MaxView using a command line and pass the file to watch?
"C:\Program Files\FastStone MaxView\MaxView.exe" "c:\test\myfile.cr3"
If so, does the problem also appear when you view a file using a button?
Command: "C:\Program Files\FastStone MaxView\MaxView.exe"
Parameters: %P%N
Re: TC won't delete a Canon RAW file if it was opened recently
I don't - maybe that's why I don't have any problems.Do you use Windows recycle bin?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: TC won't delete a Canon RAW file if it was opened recently
Opening the image via command line does not lock the file, TC can delete it afterwards.white wrote: 2022-08-18, 16:38 UTC Is it possible to launch FastStone MaxView using a command line and pass the file to watch?
"C:\Program Files\FastStone MaxView\MaxView.exe" "c:\test\myfile.cr3"
If I run the app (FastStone MaxView) and open the file on my hard drive then it's not locked either.
Only if I open it "via" Total Commander (no matter what application I use to open it with) then TC can't delete it.
Re: TC won't delete a Canon RAW file if it was opened recently
What was the command line you used? Have you tried this on TC's command line or did you try with button in TC like I suggested?Mr.Scully wrote: 2022-08-18, 20:26 UTC Opening the image via command line does not lock the file, TC can delete it afterwards.
Re: TC won't delete a Canon RAW file if it was opened recently
I think I ran the Windows "cmd" via TC's command line. I did not understand what you meant by viewing a file using button in TC?
Re: TC won't delete a Canon RAW file if it was opened recently
Perhaps try one of those "who locks/own this file" utilities to see which program/process is "locking" the file?
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Re: TC won't delete a Canon RAW file if it was opened recently
Yes, that was the first advice that I got in this discussion. The file is locked by "dllhost.exe" which is probably causing the problem but that's a standard Windows process. I don't know what to do with that. If I open the image directly from the app (not via TC) then dllhost.exe does NOT lock it. The process that blocks it is somehow related to TC.hi5 wrote: 2022-08-18, 20:55 UTC Perhaps try one of those "who locks/own this file" utilities to see which program/process is "locking" the file?
Re: TC won't delete a Canon RAW file if it was opened recently
1. Process Exlorer -> dllhost.exe -> Command line -> /Processid: {GUID}
search in registry for {GUID}
in "default" field will be description of the process
2. Process Monitor -> record activity -> filter by filename
what to do with this? i don't know
search in registry for {GUID}
in "default" field will be description of the process
2. Process Monitor -> record activity -> filter by filename
what to do with this? i don't know
Re: TC won't delete a Canon RAW file if it was opened recently
The problem is probably associated with a shell extension, so I wanted to bypass the file association system by launching the viewing program directly and passing the .cr3 file as parameter. Basically to confirm/localize the problem. I know this cannot be done with Microsoft Photos (as far as I know), so I asked you if this is possible with FastStone MaxView (I am not familiar with FastStone MaxView).Mr.Scully wrote: 2022-08-18, 20:48 UTCI think I ran the Windows "cmd" via TC's command line. I did not understand what you meant by viewing a file using button in TC?
I asked you for the command line you used. What I meant was the line you typed and executed. Note the difference between Command Line and Command Prompt (a command-line interface). I think you misunderstood and executed "cmd" and then started the .cr3 file. I wanted to know if you can start the maxview.exe program and pass the .cr3 file to view as argument. For example by typing in a command or by adding a button to TC's button bar and use that button. You said you aren't an IT novice, so I assumed you would understand.
Like you said dllhost is used to start applications or services. In task manager (Ctrl+Shift+Esc) you can view more details of the dllhost processes that are active. In task manager go to the Details tab, right-click a column header and choose "Select columns". Enable the column "Command line". Then check if the displayed list is sorted by Name, if not click on the Name column header. Then scroll to the entries with dllhost.exe in the Name column and examen what is displayed in the Command line column. If for example you open the context menu in TC (Shift+F10), you will see an extra row appearing in task manager.