Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I delete a file with a leading space?
Message
From
30/08/1999 21:10:08
 
 
To
30/08/1999 12:21:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00255531
Message ID:
00259484
Views:
18
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform