Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Directory Access Errors with 'CD' or 'SET DEFAULT' comma
Message
De
26/01/1999 17:40:32
 
 
À
26/01/1999 16:02:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00180446
Message ID:
00180518
Vues:
22
>I've been trying to access the fonts directory and the recycled directory with win95, and I get an 'invalid path or directory' error, but they do exist?
>
>Is there some way around this? I need to get into these...

Certain system folders are not directly accessible (VFP doesn't seem to like to change into a directory with the System attribute set), but you can manipulate the contents. What do you need to do? For example, to get a list of the files in C:\WINDOWS\FONTS, you can do something like:

DECLARE aFiles[1,5]
nFiles = ADIR(aFiles,'C:\WINDOWS\FONTS\*.*','SH')
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