>>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
CHDIR C:\WINDOWS\TEMP\my_big_name_dir
= GETDIR()
RMDIR my_big_name_dir
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." :^)