>Hi all,
>
>got a strange problem here. Till now I believed that MkDir creates a whole path, if it doesn't exists. It works in most cases, ie :
>MkDir ('c:\test\test\test') creates all directories even if c:\test doesn't exists.
>
>Now I ran into a situation where I need to create temporar directories, which I normally would do like :
>lc = GETENV('Temp')
>lc = ADDBS(lc) + 'Test\Test'
>MkDir (lc)
>
>but this throws an error, whose message is that the specified directory already exists although it isn't there !
>
Matthias, have you verified the value of lc? Perhaps no temp folder or temp environment variable has been set. Then your code would create test in default folder - which may already contain a test sub-folder? You could optionally also use the directory() function to test for the folders existence first.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.