Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MKDIR bug in Win 2000
Message
From
03/05/2002 13:00:59
 
 
To
03/05/2002 10:41:51
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00652059
Message ID:
00652493
Views:
22
>>>The followin command produces error in my Windows 2000 computer:
>>
>>>directory already exists. Also, Sys(2023) returns a short directory name.
>>>However, in Win 98 this command works OK.
>>>Are those VFP 7 buga ?
>>>MKDIR (SYS(2023)+ '\mykatal\andmed')
>>>Andrus Moor
>>
>>Hi
>>
>>I suspect it's because your temp directory located at "C:\Documents and Settings\USERNAME\Local Settings\Temp" - C:\Documents and Settings\USERNAME\Local Settings is a *hidden* directory by default. If you CD SYS(2023) and then MKDIR '\mykatal\andmed' it works OK. It will work as above if you were to change your temp directory to (say) c:\temp.
>>
>>Stuart
>
>Yes this is right - I have reproduced the behaviour on our machines (Win 2k srv&pro; VFP7 SP1)
>Temp path SYS(2023) is the short path of "C:\Documents and Settings\USERNAME\Local Settings\Temp"
>e.g.
>"C:\DOCUME~1\ZLATIN.JEI\LOCALS~1\TEMP"
>and because the directory is hidden it does not matter whether you will ChDir/Set default to
>it or not.

>MkDir refuses to create subdirectories in hidden directories.

This is not true. If I use two separate MKDIR commands
MKDIR (SYS(2023)+ '\mykatal')
MKDIR (SYS(2023)+ '\mykatal\andmed')
all is OK: VFP creates subdirectories in hidden directories in this case !

however, it does not create a subdirectory with a singe command:
MKDIR (SYS(2023)+ '\mykatal\andmed')

Why ?
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform