Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY TO does not support \\host\share\path
Message
De
14/01/2002 07:50:38
 
 
À
14/01/2002 07:39:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00603515
Message ID:
00604223
Vues:
34
>>I don't understand. I can post a new thread, but can't post messages to your replies?
>>
>>Any way, Yes we are correctly logged in to the host server. We do have at least one drive mapped to the host server.
>>
>>However, my problem is since the "My Documents" path is not using the mapped drive, but, is instead using \\host-name\share\path is the "COPY TO" command failing because of the host name instead of a drive letter or is it because of the space in the "My Documents"?
>>
>>Thanks
>>Lee Roy
>
>Leeroy,
>It's an OS problem not VFP. Use quotes around filename. Otherwise it's problem anywhere with long file names.
>
>copy myTable to \\server\share\my long file name path\my file name
>fails.
>copy myTable to '\\server\share\my long file name path\my file name'
>works.

Better yet, use name iundirection all the time - it works regardless of whether the path is an LFN or not:
copy myTable to ('\\server\share\my long file name path\my file name')
copy myTable to ('myTable2.dbf')
You can use a string variable rather than a string in a consistent fashion.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform