Hello Oleg,
I am having a problem with long path names. They are being truncated. The names are all about 200 characters long.
I'm using the Synchronize Folders command to sync files from one server to another. Hundreds of errors are being reported because of the truncated filenames are not able to be found.
Any ideas or workarounds for this problem?
I can copy the files manually from one server to another, but the Sync Folder command shows the errors seen in the screenshots. Kindly let me know what you think.
Thanks a lot,
Steve
Long Path / File Names Truncated
-
- Posts: 3
- Joined: Wed Jul 24, 2013 7:49 pm
Long Path / File Names Truncated
- Attachments
-
- RoboTask_Errors.jpg (184.07 KiB) Viewed 19633 times
-
- truncated_files.jpg (157.69 KiB) Viewed 19633 times
Re: Long Path / File Names Truncated
Thank you for your report. We will investigate the problem.
Oleg Yershov
Re: Long Path / File Names Truncated
I made the test with long file names.
The names like this:
C:\Temp\incoming\very very long folder\very very long sub-folder.very very long sub-folder.very very long sub-folder\very very long sub-folder.very very long sub-folder.very very long sub-folder 2 level (10)\Long file name in folder(10) - (10).txt
This name contains 247 symbols
The "Synchronize Folders" action processed all files correctly on local disk
C:\Temp\incoming -> C:\Temp\destination
Usually the maximal length of file name is 260 symbols (for Windows local files). But network servers may have more strict limitation.
When I try to sync files to network folder (C:\Temp\incoming -> \\localhost\share\destination) I get such error sometimes (when result file name is longer than limit):
W: 25.07.2013 8:48:42: Can't copy file "C:\Temp\incoming\very very long folder\very very long sub-folder.very very long sub-folder.very very long sub-folder\very very long sub-folder.very very long sub-folder.very very long sub-folder 2 level (9)\Long file name in folder(cnt) - (cnt1).txt
The solution is to try to use more short path and file names.
Also you can try to do such trick
You can use relative file names, i.e. from current folder (not from root)
for my example it will be so:
Select Folder "C:\Temp\incoming\very very long folder"
Synchronize Folders "." -> "\\server\share\dest"
In this case the names of source files will be shorter on 38 symbols
Another way:
Use SUBST system command in order to create more short paths.
Use SUBST /? to get the command line options
For example
subst s: \\localhost\share
In this case I get no errors when I copy files from C:\Temp\incoming to s:\destination
The names like this:
C:\Temp\incoming\very very long folder\very very long sub-folder.very very long sub-folder.very very long sub-folder\very very long sub-folder.very very long sub-folder.very very long sub-folder 2 level (10)\Long file name in folder(10) - (10).txt
This name contains 247 symbols
The "Synchronize Folders" action processed all files correctly on local disk
C:\Temp\incoming -> C:\Temp\destination
Usually the maximal length of file name is 260 symbols (for Windows local files). But network servers may have more strict limitation.
When I try to sync files to network folder (C:\Temp\incoming -> \\localhost\share\destination) I get such error sometimes (when result file name is longer than limit):
W: 25.07.2013 8:48:42: Can't copy file "C:\Temp\incoming\very very long folder\very very long sub-folder.very very long sub-folder.very very long sub-folder\very very long sub-folder.very very long sub-folder.very very long sub-folder 2 level (9)\Long file name in folder(cnt) - (cnt1).txt
The solution is to try to use more short path and file names.
Also you can try to do such trick
You can use relative file names, i.e. from current folder (not from root)
for my example it will be so:
Select Folder "C:\Temp\incoming\very very long folder"
Synchronize Folders "." -> "\\server\share\dest"
In this case the names of source files will be shorter on 38 symbols
Another way:
Use SUBST system command in order to create more short paths.
Use SUBST /? to get the command line options
For example
subst s: \\localhost\share
In this case I get no errors when I copy files from C:\Temp\incoming to s:\destination
Oleg Yershov
-
- Posts: 3
- Joined: Wed Jul 24, 2013 7:49 pm
Re: Long Path / File Names Truncated
Thank you, Oleg. Your support of RoboTask is always excellent. We are lucky to have you!
Yes, I'm aware of the subst command. Your method of shortening the path within the task was interesting, but I think I just go through the folder names and shorten them. IMHO, they are unnecessarily long.
Thanks again for your support, Oleg. All the best.
Steve
Yes, I'm aware of the subst command. Your method of shortening the path within the task was interesting, but I think I just go through the folder names and shorten them. IMHO, they are unnecessarily long.
Thanks again for your support, Oleg. All the best.
Steve