Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I delete a file with a leading space?
Message
From
27/08/1999 20:26:22
 
 
To
19/08/1999 17:02:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00255531
Message ID:
00258715
Views:
20
>I have a situation where there are some files created that have a leading space, eg. " JUNK.DBF". Is there a way to delete this file programmaticly using VFP5? Delete file, !del, and RENAME seem to have no affect. I am able to delete them with Explorer but I don't want the user to have to deal with it.
>
>Thanks!

This has turned out to be quite a long thread!

How about:

DEL ?junk.dbf
or
DEL *junk.dbf

at the command line. The question mark replaces one character. The asterisk replaces any number. Just be sure to do a:

DIR ?junk.dbf
or
DIR *junk.dbf

first to ensure the only files deleted is the one you want...

HTH (and apologies if this has already been suggested)
Paul M.
MCSE/MCSA/MCT/MCP+I, A+, Network+, I-Net+
Nil carborundum illegitimi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform