|I am running into an issue that is very common across the Internet with XCOPY.|
I cannot utilize XXCOPY or Robocopy as a work-a-round much as I would like to.
"Insufficient Memory" Error
This memory error is not due to physical memory on the computer. This is due to character limits for the pathway in XCOPY. No more than 254 characters in the source or destination pathway.
Since Windows XP 32 Bit (Unsure about Vista or 64 Bit OS's) also has this 254 Character Limitation in its pathways on the Operating System this error will more than likely come up 90% of the time with the destination we are copying to such as my case.
I would like to create function that gets called, counts the number of characters in the pathway preferably before or at the time the xcopy command is being executed. If it finds one over 230 characters then:
1. Automatically truncates that document being copied.
2. Automatically renames the destination directory %folder% to a shorter name.
Is this possible?
Can someone help me accomplish this?
Any help would be greatly appreciated.