I need to create a simple program to copy files from a network drive (local server) to a standard location on a remote server, connected via a VPN. Seems like a simple task, but the program needs to work on Win2K, WinXP(SP1) & WinXP(SP2).
I tried this using FSO.Copyfile (first mapping a drive with NET USE, then unmapping after the transfer is complete). This worked fine except on Windows XP sp2 where it gave an error message. The people using the program are working in France so the error messages are also in French (just to complicate matters!):
I don't know how good your French is, but this means something like "attempt to access an invalid address" (I think!).
After a bit of playing around I decided to try a different method - XCOPY using the IP address. Again I got this to work fine with Win2K and WinXP(sp1), but now got a new error message with WinXP(sp2). Afraid I've lost the error message now as this all happened last week.
I should mention that in both versions of the program, administrator credentials were being passed with the connection/copy commands.
Does anyone know of a method/command that will definitely work on WinXP(sp2)?
I tried this using FSO.Copyfile (first mapping a drive with NET USE, then unmapping after the transfer is complete). This worked fine except on Windows XP sp2 where it gave an error message. The people using the program are working in France so the error messages are also in French (just to complicate matters!):
Code:
Erruer D'execution '-2147024409 (800701e7)': Tentative d'access a une addresse non valide
I don't know how good your French is, but this means something like "attempt to access an invalid address" (I think!).
After a bit of playing around I decided to try a different method - XCOPY using the IP address. Again I got this to work fine with Win2K and WinXP(sp1), but now got a new error message with WinXP(sp2). Afraid I've lost the error message now as this all happened last week.
I should mention that in both versions of the program, administrator credentials were being passed with the connection/copy commands.
Does anyone know of a method/command that will definitely work on WinXP(sp2)?