Information générale
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Network:
Windows 2003 Server
>>>I'm trying to do this...
>>>
>>>lcFrom = 'C:\VFP_Projects\Appsr'
>>>lcTo = '\\server\APPS'
>>>
>>>oWSH.CopyFolder(lcFrom, lcTo, .T.)
>>>
>>>If I change to lcTo to something that doesn't have the \\ in it, then it works. Is there a way to do this with UNC file pathing??
>>
>>I think the problem is that you did not include a folder, you just jave a server and a share \\server and \apps respectively , you should add a folder (even \ might work)
>
>hmmm...well no dice on that either. I think I might have some sort of permissions problem. For the lcTo I was using something on my C drive and it worked. If I map the network drive/folder and try to use that it still fails. Interestingly sometimes it actually works but still tosses me an OLE error.
Try putting a trailing backslash on the pathnames. Maybe??
Précédent
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