Hi Hugo,
No, I can't do anything with a UNC reference until I've authenticated against the server. And the other reference about using impersonation has turned up a dead-end for me because, at run time, I don't know what the user credentials will be. This is not for an internal application where I could just compile a user name and password into the VFP application. This app is going to a customer.
Again, this will be fired from a scheduled task where there is no logged in user. User credentials can be defined when the scheduled task is created. But all these other API tricks and even the Windows Scripting Host as suggested in another message don't seem to honor the user credentials defined with the scheduled task.
I'm scrambling for ideas. Any other thoughts?
Guy
>
>Can't you just copy using the UNC? (and use UNC where elsewhere needed)
>
>copy file \\Server\path\file to C:\path\file
>
>
>Additionally, you probably should create a log-on session, take a look at Message #
948574 to use impersonation