Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mkdir - problem VFP8
Message
From
26/07/2003 10:17:26
 
 
To
26/07/2003 09:38:51
Matthias Will
BiCON Systemtechnik GmbH
Karlsruhe, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00813741
Message ID:
00813743
Views:
12
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform