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 18:38:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00255531
Message ID:
00255607
Views:
16
I've tried to simulate your problem here but can't get the file to save with a space. Anyway, I was going to try two things.

1) try macro substitution

m.f = " file.txt"
ERASE &f
or
DELETE FILE &f

2) use the DOS copy command to remove the space then delete it. The foxpro copy command might also work instead of shelling to DOS.

copy ?file.txt _file.txt
ERASE _file.txt
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform