Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need help with ADIR command
Message
De
16/11/1999 17:26:49
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00291643
Message ID:
00291674
Vues:
18
>I am trying to get an array from a specific directory on my harddrive.
>I am doing what I "believe" is correct but the value always returns a "0" and it should return the file count.
>the line is...
>ADIR(temparr,'C:\programfiles\*.*')
>
>I know I'm missing something real simple here!
>

The following works fine on my NT box:

DECLARE aFiles[1,5]
? ADIR(aFiles,'C:\WinNT\*.*')


Are you sure of the directory name? For example, my system has a C:\Program files directory on it - the space in the name is significant. If I say:

? ADIR(aFiles,'C:\Program files\*.*')

it finds things

? ADIR(aFiles,'C:\Programfiles\*.*')

doesn't, because the directory name doesn't exist.

>thanks,
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