Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I delete a file with a leading space?
Message
De
30/08/1999 21:10:08
 
 
À
30/08/1999 12:21:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00255531
Message ID:
00259484
Vues:
19
>Therein lies the problem. There are 12 files with the first three characters being different and the other 5 being the same. Using a wildcard to delete the objectional file would take the other 12 good files with it. What seems to work best is something similar to this:
>
> oFile = fCreate("C:\ junk.dbf")
> fClose (ofile)
>
> x1='!del c:\junk~1.txt'
> &x1


If the other 12 files don't start with a space (or other hidden character), copy them to a temporary directory, delete the problem file, then copy the others back...
Paul M.
MCSE/MCSA/MCT/MCP+I, A+, Network+, I-Net+
Nil carborundum illegitimi.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform