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: 373634 # Views: 36 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Classes and Objects
Date: Sunday, March 24, 2013 3:04:26 PM         
   


> >
> > 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
>
> Hi,
>
> No problem, I have admin, however faced error: "File name is too long" :( :(
>
> Regards,
>
> Koen
>
> ** The coding in VFP without using mDot should be qualified as recreational **

I did this quick test with a long name:
run rd "D:\a_vfp\ProjNew\School\libs\customer_classes\libs\customer_classes\help" /s /q
and it worked fine.
I don't know why you get the error, sorry. Not so familiar with cmd errors.


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