Win32Lib copyFile() failure
- Posted by Greg Haberek <ghaberek at gmail.com> Jul 04, 2005
- 564 views
I'm working on a backup app for my work. The one we have right now is rather buggy, uses xcopy, and is written in VB. It fails on any filename longer than 255 characters, due to using xcopy via the command line. I'd like to rememdy this. I'm pretty sure copyFile() in Win32Lib doesn't mind 255+ length filenames. Here's a summary of the backup process: 1. walk_dir() through all files, counting files, folders and sizes 2. walk_dir() again, copyFile() or createDirectory() on each entry createDirectory() successfully re-creates the directory tree, but copyFile() only copies the first 3 files and fails on all the rest. I can send the app to anyone who'd like to help, but I can't publicly post = it. ~Greg