Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making a Directory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
01172934
Message ID:
01172978
Vues:
16
>>I am using the RUN command to make directories from within VFP.
>>
>>I am finding that if I attempt to make a directory with a name longer than 8 characters, that the DOS Shell seems to truncate it to the first 8 chanracters.
>>
>>e.g. RUN MD "C:\ONCEXPORT" results in a file folder called "C:\ONCEXPOR"
>>
>>Is there a way around this?
>>
>>Mike Smith
>
>
>TRY
>  MD C:\ONCEXPORT
>CATCH
>ENDTRY
>
>TRY and CATCH block is just is the folder already exists.


I gave the following code a try (from VFP "help mkdir") with no problems...
MKDIR C:\WINDOWS\TEMP\my_big_name_dir  && Create a new directory

CHDIR C:\WINDOWS\TEMP\my_big_name_dir  && Change to the new directory

= GETDIR()  && Display the Select Directory dialog box

RMDIR my_big_name_dir  && Remove the new directory
Didn't have any problems with long file names. (Shrug.)
Mike: What version of VFP are you using? You running SP1?

Best Regards,

Randall
--
Randall Jouett
Amateur/Ham Radio: AB5NI
I eat spaghetti code out of a bit bucket while sitting at a hash table! Someone
asked me if I needed salt, and I said, "I'm not into encryption." :^)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform