Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File Access Denied
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00645440
Message ID:
00645520
Vues:
14
>Here is a good one. I always use variable's to hold a path to various servers. Example: (gsDbfpath = '\\someserver\somedirectory'). Command: Copy To (gsDbfPath+'somefile.xls') type XLS.
>
>All of a sudden VFP does not like this. I now get a 'File Access Denied' error when this line of code runs. if I put (gsDbfPath+'somefile.xls') in a variable it works. Does anyone know why. I have quite a number of apps I use this syntax in without ANY problems. I did recompile the app but had not changed anything other than updating a report. I am concerned.
>

The first obvious problem is the lack of a trailing backslash in the target path - you may need to say:

Copy To (ADDBS(gsDbfPath)+'somefile.xls') type XLS

Leaving that out results in an invalid UNC reference.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform