PDA

View Full Version : XCopyFile returns -2 (OPENINPUT ERROR)



mulot30th
05-01-2002, 10:43 AM
I am desperately trying to find a way to succesfully copy an entire directory (to make a backup of the previous installed version) and XcopyFile keeps returning with errorcode -2 after about 80% of files are copied. Any worksaround this bug?

Note: Lets say I try "*.dat" instead of "*.*" all my .dat files will successfully copy but I need to copy ALL the files... I even tried to copy "*.A*", "*.B", etc.... but it will ALWAYS return the -2 error code after trying "*.I*"...

Need help very quickly with that one!!
Thanks