I am using the FolderCopy method in a backup vbscript which copyies a users My Documents directory to a network server. In a number of cases the Vbscript dies out whenever it hits the Windows 255 charcter path limitation. Using the on error resume is not an option since we need to now that the backup is not getting all the files.
I need to have the backup script continue its copy process even if it hits the 255 charactor path limition. What I also want to do is have the script create an error text file displaying the file path of the file that cause the error. So far I have found the function that dispalys the absolute path but I need the path count in order to through an error process.
My theory is to copy files until an exception occurs of which the script will write an log entry so we can go back and indentify which files have to be manually shorten.
Has anyone done this or have any helpfull sugesstions as to a method to use?
I need to have the backup script continue its copy process even if it hits the 255 charactor path limition. What I also want to do is have the script create an error text file displaying the file path of the file that cause the error. So far I have found the function that dispalys the absolute path but I need the path count in order to through an error process.
My theory is to copy files until an exception occurs of which the script will write an log entry so we can go back and indentify which files have to be manually shorten.
Has anyone done this or have any helpfull sugesstions as to a method to use?