Tag Archive: mkdir

mkdir – create directory

Add to your global map:

  module('clib')
  MkDir(*cstring),short,raw,name('_mkdir')
  end

Then in your code call it!

If you have an existing directory called c:\L1 and want to make c:\L1\L2\L3 then

newdir='c:\L1\L2'
If mkdir(NewDir) then Message('error');return.
NewDir='c:\L1\L2\L3'
If Mkdir(newDir)then Message('error');return.
Message('done')