General information
Category:
Coding, syntax & commands
>>I am having a beast of a time renaming numeric filenames
>>
>>
>>VFP 3.0b keeps saying File does not exist or something to that effect (file not found?) but it does.
>>
>>I tried the following on a fresh exec of vfp:
>>
>>I created a file called 12345678
>>
>>rena 12345678 TO junk.txt (file does not exist)
>>copy file 12345678 to junk.txt (no problem)
>>dele file 12345678 (no problem)
>>rena junk.txt to 12345678 (no problem)
>>rena 12345678 to junk.txt (file does not exist!)
>>
>>GRRRRR!!!!!!!!!!!!!!!!
>>
>>Frustrated and confused needing any input on this problem...(filenames already exist and can't be
>>changed due to prior policies that are in place, however I need to be able to temporarily rename them and rename them back again!!!)
>>
>>Thanks for any assistance.
>
>Robert: Have you considered taking a step back in time and usinge the RUN command so the renames are done in DOS? Your users will have to put up with the flash of a DOS screen, but all file names would be acceptable.
>
>This isn't just a VFP problem - I had problems over 5 years ago when a client insisted that all files start with the year - 92jan, 93mar, etc.
>
I considered it, but . . . If I'm desperate I will, I'm already flashing them w/ PKUNZIP. No use licensing the windows version when we'll be reorganizing w/ in a month.
Perhaps there is a Win API call that I can use.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only