Solved Windows file length limit 2008 R2 > 2012 R2
-
So I am having issue with File Length limitation. Microsoft seem to pushed out a hot fix, but I could not find the download link for 2012 R2. I did find 2012 version, but it prompt stated that it is the incorrect version when use with 2012 R2. Duh..
Anyone has a link to the hot fix?
EDIT: this is the KB in question KB2891362
-
I'm not sure about the hotfix but you can get around this issue by using the substitute command. It's really similar to net use
subst x: path
So, if I wanted to substitute c:\longpth\toolong as a drive I would use
Subst x: c:\longpath\toolong
Use this command to shorten both paths and you will be all set
edit fixed syntax
-
@thedalton said:
I'm not sure about the hotfix but you can get around this issue by using the substitute command. It's really similar to net use
subst x:\localpath drive letter
So, if I wanted to substitute c:\longpth\toolong as a drive I would use
Subst c:\longpath\toolong x:
Use this command to shorten both paths and you will be all set
Thanks for the reply.
The reason the file path is long is because it is under multiple level of folder structure. it is like media\photo\state\year\month... Using subst will not solve but may create more problems to users as it can easily confuse them. What I mean is using subst is equally the same as telling the users to redo all their structure tree. -
Oh I see. I was assuming a file copy operation was failing due to long path names. And I messed up the syntax
It's subst x: path
-
@thedalton said:
I'm not sure about the hotfix but you can get around this issue by using the substitute command. It's really similar to net use
subst x:\localpath drive letter
So, if I wanted to substitute c:\longpth\toolong as a drive I would use
Subst c:\longpath\toolong x:
Use this command to shorten both paths and you will be all set
It's what I do when I've this problem.
It's curious that MS programs like Robocopy can handle long paths.
-
@iroal said:
@thedalton said:
I'm not sure about the hotfix but you can get around this issue by using the substitute command. It's really similar to net use
subst x:\localpath drive letter
So, if I wanted to substitute c:\longpth\toolong as a drive I would use
Subst c:\longpath\toolong x:
Use this command to shorten both paths and you will be all set
It's what I do when I've this problem.
It's curious that MS programs like Robocopy can handle long paths.
I'm pretty sure there are long paths that even Robocopy can't handle.
-
@Dashrender said:
@iroal said:
@thedalton said:
I'm not sure about the hotfix but you can get around this issue by using the substitute command. It's really similar to net use
subst x:\localpath drive letter
So, if I wanted to substitute c:\longpth\toolong as a drive I would use
Subst c:\longpath\toolong x:
Use this command to shorten both paths and you will be all set
It's what I do when I've this problem.
It's curious that MS programs like Robocopy can handle long paths.
I'm pretty sure there are long paths that even Robocopy can't handle.
Good question.
I don't know the limit, I have used it for paths with more of 300 characters without problems.
-
So in the end I use Robocopy just to get the file transfer over. Still, we cannot rename or add any other files to the same folder.
(space), and symbols. I have to remove the symbol temporary just to get robocopy does its job. As for spaces, you will need to put quotation between the space.
\Program" "Files\ instead of \Program Files\ or "Program Files"\