Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove Folder Problem
Message
De
05/05/2005 05:11:39
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Remove Folder Problem
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01011193
Message ID:
01011193
Vues:
58
Dear Sir,

I want to remove a folder and use following code but it generates error.
The line on which error appears is the second last line.

Please modify codes or suggest some other codes to delete any folder.
cFolder1 = alltrim(Thisform.text4.value)
cFolder2 = alltrim(thisform.text8.value)

&& test if folder already exists
fso =createobject("Scripting.FileSystemObject")
aoo= fso.FolderExists(cFolder2)

&& if folder already exists then delete
if aoo=.t.
fso =createobject("Scripting.FileSystemObject")
fldr=fso.DeleteFolder(cFolder2) && GENERATES ERROR ON THIS LINE
endif
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform