Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6: Long file name and erasing
Message
 
To
24/04/2002 13:07:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00648751
Message ID:
00648769
Views:
25
Thanks for the reply! No, I am pretty sure there are no blanks in the file name. I rebooted my PC and the file magically disappeared! It must have been Win98 acting crazy.


>>I am copying and erasing files that have long file names. They are BMP
>>files with name as YYYYMMDDHHMMSS.BMP. I did think it was any problems
>>until today when I tried to ERASE a file and it wouldn't do it. I then
>>tried 200204~1.bmp and it worked. Why did this just show up now? How am I
>>going to program that file name?
>
>Any chance of an embedded blank in the filename? That can cause problems.
>
>IAC, you should be able to use ERASE with the long file name, but surround it with quotes to be sure it can handle whatever's there:
>
>cFileName = '"' + cFileName + '"'
>ERASE (cFileName)
>
>Tamar
DLC
"Use the Right Tool for the Job!"
davidandcynthia@email.com
Previous
Reply
Map
View

Click here to load this message in the networking platform