// List the contents of the user's projects directory getFileList -folder `internalVar -userWorkspaceDir`; // Store all MEL files in the user's script directory // in an array variable array $scripts = `getFileList -folder `internalVar -userScriptDir` -filespec "*.mel"`; // Create a new directory path sysFile -makeDir "C:/temp/mayaStuff"; // Windows sysFile -makeDir "/tmp/mayaStuff"; // Unix