Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create Directory if not exist
#1
Can't seem to get this to work right.
Function Create_Directory
Code:
Copy      Help
if(!dir("$desktop$\Test_Folder"))
,out "not there"
,mkdir ("$desktop$\Test_Folder")
else
,out "it is there"

It creates the directory if non existent....but also creates again if it does exist...what do I have wrong?
#2
if(!dir("file")) ;;use this for files

if(!dir("folder" 1)) ;;use this for folders
#3
Thanks...I forgot all about the flag on that....


Forum Jump:


Users browsing this thread: 1 Guest(s)