Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MKDIR bug in Win 2000
Message
From
03/05/2002 10:41:51
 
 
To
03/05/2002 08:59:55
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00652059
Message ID:
00652405
Views:
13
>>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.

There is known simmilar problem with the FILE() function and hidden files.

Maybe we should add handling of hidden files/directories in Toledo wish list.

Regards
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform