Page 1 of 1

[Bug Report] Path max length

Posted: 28 Dec 2012, 18:23
by Deviling Master
Hi, i'm using FileBot x64 on Windows 7 Pro x64 and i found this bug.

If the destination path is longer than 255 characters, the rename function fails without any warning or error.

Re: [Bug Report] Path max length

Posted: 28 Dec 2012, 18:27
by rednoah
The path can be longer. But on Windows each folder/file name must not exceed 255 characters. Reasonably named files will not exceed this. :P

Re: [Bug Report] Path max length

Posted: 28 Dec 2012, 19:39
by Deviling Master
rednoah wrote:The path can be longer. But on Windows each folder/file name must not exceed 255 characters. Reasonably named files will not exceed this. :P
My ENTIRE path was 260 chars and the rename didn't work.
After i renamed some folders, the rename function worked

Re: [Bug Report] Path max length

Posted: 29 Dec 2012, 01:11
by rednoah
What OS? What FileSystem? I impose no limits, but the underlying os/fs implementations may have limits. What's the error logging if you run with a console?

Re: [Bug Report] Path max length

Posted: 29 Dec 2012, 16:17
by Deviling Master
rednoah wrote:What OS? What FileSystem? I impose no limits, but the underlying os/fs implementations may have limits. What's the error logging if you run with a console?
- Windows 7 Pro x64
- NTFS File SYstem
- How to run console?

Re: [Bug Report] Path max length

Posted: 29 Dec 2012, 17:52
by rednoah
That should work. Just use the FileBot (console) shortcut and see what it says.

You could also try to change the rename engine. If you install via the msi the normal FileBot shortcut will use Windows Shell. Maybe if you use the Java 7 it'll work, so u can try using the FileBot (platform) shortcut and see if renaming works better in that case.

Re: [Bug Report] Path max length

Posted: 29 Dec 2012, 18:09
by Deviling Master
rednoah wrote:That should work. Just use the FileBot (console) shortcut and see what it says.

You could also try to change the rename engine. If you install via the msi the normal FileBot shortcut will use Windows Shell. Maybe if you use the Java 7 it'll work, so u can try using the FileBot (platform) shortcut and see if renaming works better in that case.
I usually run the program using "Filebot" shortcut ("C:\Program Files\FileBot\filebot.launcher.exe") and, using this, i have the rename problem i talked about.
If i use "FileBot (console)" shortcut, the rename function works correctly.

Which launcher should i use?

Re: [Bug Report] Path max length

Posted: 29 Dec 2012, 18:12
by rednoah
Well, I guess then the Windows Shell can't handle files with more than 255 chars? This is how you disable that feature and use standard Java move/copy functions:

In filebot.launcher.l4j.ini set useNativeShell to false:

Code: Select all

-DuseNativeShell=false

Re: [Bug Report] Path max length

Posted: 29 Dec 2012, 18:15
by Deviling Master
rednoah wrote:Well, I guess then the Windows Shell can't handle files with more than 255 chars? This is how you disable that feature and use standard Java move/copy functions:

In filebot.launcher.l4j.ini set useNativeShell to false:

Code: Select all

-DuseNativeShell=false
Yep! Now works :D

Thank you.