Information générale
Catégorie:
Codage, syntaxe et commandes
>>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement