/* $Id$ * * Createpath.cmd * * Creates a path. * */ if RxFuncQuery('SysMkDir')=1 THEN call RxFuncAdd 'SysMkDir', 'RexxUtil', 'SysMkDir' parse arg sArgs return createpath(sArgs); createpath: procedure parse arg sDir /* * Any directories above this? If so we'll have to make sure they exists! */ sPath = filespec('path', sDir); if (length(sPath) > 0 & sPath <> '\') then rc = createpath(filespec('drive', sDir) || substr(sPath, 1, length(sPath)-1)); /* * Create this directory. */ rc = SysMkDir(sDir); return 0;