Information générale
Catégorie:
Fonctions Windows API
Titre:
Make network connection from scheduled task
HI,
I need to have a small VFP utility that gets fired from a scheduled task. This utility needs to connect to a network drive and copy some files from the network share down to the local PC and then do some other misc processing.
My problem is that there will be no user looged in when the schedule task launches. I thought it'd be no problem because when I define the scheduled task, I can also set the user whose privileges will apply when the task is run.
I've searched messages on this board for WNetAddConnection, etc, but so far I can't find anything that works unless there is already a logged in user.
Does anyone have any sample code of mapping a network drive that works with no user logged in but rather, launched with admin (or any other user) privileges from a scheduled task?
Thanks,
Guy
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement