Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Folder Exists
Message
 
 
À
21/02/2005 21:08:44
John Tomblin
Service Station Systems, Inc.
San Jose, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00989103
Message ID:
00989106
Vues:
33
The DIRECTORY() function doesn't see hidden or system subdirectories. You can either remove hidden attribute or use ADIR
GoodDir = "V:\Data\Dlog3\SitePhotos\123456"
? ADIR(laTemp, GoodDir, "DHS")
If WSH is an option
oFSO = createobject('Scripting.FileSystemObject')
? oFSO.FolderExists(GoodDir)
>GoodDir = "V:\Data\Dlog3\SitePhotos\123456\"
>?directory(GoodDir) returns .F. but, that is incorrect
>
>PartDir = "V:\Data\Dlog3\SitePhotos\"
>?directory(PartDir) returns .T.
>
>copy file Something.jpg to (GoodDir + "Something.jpg") works just fine.
>adir(aName, GoodDir + "*.jpg") returns 0 even though there are .jpg files in the folder.
>
>Is there any way around this deficency without renaming 500 folders and changing tons of code?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform