Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Samir H.
  Where is Samir H.?
 Yogyakarta
 Indonesia
 Samir H.
 To: Koen Piller
  Where is Koen Piller?
 Santpoort-Zuid
 Netherlands
 Koen Piller
 Tags
Subject: RE: remove directory
Thread ID: 373496 Message ID: 373618 # Views: 43 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Classes and Objects
Date: Sunday, March 24, 2013 8:28:18 AM         
   


> Hi,
>
> do we have a syntax to remove a directory and all its subs, even if there is data in any? For OS WIN7
>
> Regards,
>
> Koen
>
>
> ** The coding in VFP without using mDot should be qualified as recreational **

You can use
run rd "yourDir" /s /q
or the equivalent with shellexecute.

I don't know if that works with non-admin accounts.

Regards
Samir

ENTIRE THREAD

remove directory Posted by Koen Piller @ 3/22/2013 3:47:27 PM
RE: remove directory Posted by Rick Hodgin @ 3/22/2013 4:14:18 PM
RE: remove directory Posted by Paul Gibson @ 3/22/2013 4:16:25 PM
RE: remove directory Posted by Samir H. @ 3/24/2013 8:28:18 AM
RE: remove directory Posted by Koen Piller @ 3/24/2013 1:40:08 PM
RE: remove directory Posted by Samir H. @ 3/24/2013 3:04:26 PM
RE: remove directory Posted by Koen Piller @ 3/24/2013 5:07:28 PM
RE: remove directory Posted by Rick Hodgin @ 3/24/2013 7:13:54 PM
RE: remove directory Posted by Koen Piller @ 3/24/2013 9:15:33 PM
RE: remove directory Posted by Rick Hodgin @ 3/24/2013 9:46:27 PM
RE: remove directory Posted by Koen Piller @ 3/24/2013 10:32:17 PM
RE: remove directory Posted by Rick Hodgin @ 3/24/2013 10:35:50 PM
RE: remove directory Posted by Rick Hodgin @ 3/24/2013 10:43:07 PM
RE: remove directory Posted by Koen Piller @ 3/24/2013 10:50:04 PM
RE: remove directory Posted by Rick Hodgin @ 3/24/2013 10:54:13 PM