Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I delete a file with a leading space?
Message
 
 
To
19/08/1999 17:44:30
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00255531
Message ID:
00255809
Views:
18
>>>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!
>>
>>I would like to know how someone was able to start a file name with a space. You can probably enclose the name in quotes to do it -- erase " junk.dbf"
>
>I've created such things from GWBasic and FP 1.02 - when they created files for themselves, you could stuff any kind of junk into the filename. Don't remember which I used in GWB, but in FP it could be Set Alte To "one two.txt" - and it created such a file. Happened couple of times.

I also was able to do that, but I could never create one that started with a space. The leading space just disappeared.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform