Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting a Folder
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Deleting a Folder
Miscellaneous
Thread ID:
00892135
Message ID:
00892135
Views:
52
This will remove the folder ..\e\ folder and anything in it
oFSO = CREATEOBJECT( "Scripting.FileSystemObject" )
oFSO.DeleteFolder( "c:\e" ) && no wildcards removes \e folder

But what if I want to leave the \e folder but remove any files or subfolders in it? But
this doesn't do anything, even though added wildcards??
oFSO = CREATEOBJECT( "Scripting.FileSystemObject" )
oFSO.DeleteFolder( "c:\e\*.*" ) && <---------------added wildcards

Thanks
STeve
Next
Reply
Map
View

Click here to load this message in the networking platform