DFHL icon indicating copy to clipboard operation
DFHL copied to clipboard

[version 2.6 not have backward compatibility!] (DFHL.exe not a valid Win32 application)

Open username1565 opened this issue 5 years ago • 3 comments

[version 2.6 not have backward compatibility!] (DFHL.exe not a valid Win32 application) Version 2.5 working good. How to compile v2.6 to win32 exe (x86), like v2.5 DFHL?

username1565 avatar Jan 09 '20 03:01 username1565

Just tried v2.6 on my XP Pro SP3 32bit and i have the same issue. It runs on Win7 SP1 32bit. The PE header says, that it is compiled for NT6 (Vista+). After editing that to NT5 i was able to run DFHL in XP, but it hangs when parsing folders...

temp10min avatar Aug 02 '20 12:08 temp10min

@temp10min, maybe need to compile this with some flags, like gcc -m32 to get a valid win32 Portable Executeble application (PE), instead to re-write the PE-headers.

Or just maybe need to fix something in the source code. If you have solution, you can let me know it.

P.S.: DFHL v2.5 working on XP SP3. But parsing of the folders is not correct there, too. So I found the following solution.

  1. Unpack DFHL.cmd and DFHL.exe in the folder with cyrillic pathway, where need to hardlink duplicates-files.
  2. Win+R -> cmd.exe -> Enter
  3. cd "C:\Documents and settings\Рабочий стол\Василий\Мои документы" -> Enter
  4. start DFHL.cmd
  5. wait...
  6. Duplicates hardlinked successfully in this folder.

"NTFS Link" show the red arrow near hardlinked-files, and WinHEX show the same sectors for two hardlinked duplicate-files.

The second solution which I find - this is using "finddupe.exe". I created there makefile2 to compile this into win32 application, by using gcc. the file start_finddupe.bat allow to input the pathway from the any folder with double quotes, or just find the duplicate and hardlink this, in the same folder, which was been active, before start this .bat-file.

Best regards

username1565 avatar Aug 03 '20 02:08 username1565

@username1565 I use this as a .cmd file in my SendTo folder:

dfhl /h /l /s /w /r %1
@pause

When you specify a folder, it should not end with a slash, or DFHL 2.5 hangs. This works: DFHL.exe -r C:\Folder This hangs: DFHL.exe -r C:\Folder\

temp10min avatar Aug 03 '20 17:08 temp10min