Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Batch file suggestions?
Message
De
25/05/2006 20:12:01
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Divers
Thread ID:
01125021
Message ID:
01125123
Vues:
24
>Al,
>
>pseudocode
>
>
>dir lpt$vpn.* /oe /b >delfilelist.bat
>some old dos command that will delete the last line of the file
>another old command that would preface each line with erase
>delfilelist.bat
>
>
>You might also be able to set up a disk management policy on that folder to delete files older than a week.

Thanks for the suggestion! Combining your and Naoto's ideas, it turns out this can be done in as few as 2 lines of code, 8 when nicely parameterized w/cleanup etc.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform