Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove an existing directory programatically?
Message
De
18/10/2002 18:08:47
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
À
18/10/2002 07:32:39
Fabian Belo
Independent Developer
Argentine
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00711569
Message ID:
00713106
Vues:
20
I'll try this one too Fabian. Appreciate your kind response.

>According to the theory
>
>RUN RD /S &Path
>
>it should work but it doesn't.. (Don't know why)
>According with Jose Luis Santana (not copyrighted yet :))) you can use 2 APIs:
>1) MoveFile (I don't have the sample of this function on hand) to move the directory to another folder like Recent Documents.
>2) Empty Recent Documents Folder:
>

>DECLARE LONG SHAddToRecentDocs IN "Shell32";
> LONG lFlags,;
> LONG lPv
>=SHAddToRecentDocs (0, 0)
><\PRE>
>It's a tricky (unclean) way to do it...but it works.
>
>Regards
>
>>Hi all:
>>
>>I am attempting to first, delete an existing directory and all subfolders within that directory and then create a new directory with subdirectories where needed.
>>
>>I have tried the RMDIR and RD commands - but get a message that says "File Access is Denied". Clicking HELP tells me that I am trying to write to a protected file (whihc is not true).
>>
>>Any suggestions? Thank you in advance.
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform