Page 1 of 1

Create a folder from script

Posted: 06 Apr 2015 19:29
by merdmann
I am trying to find a xyplorer script command to create a folder. Seems to be an FAQ but i can't find any answer :-(

Re: Create a folder from script

Posted: 06 Apr 2015 19:34
by highend
Help file - Advanced Topics - Scripting Command Reference - "new"

:)

Re: Create a folder from script

Posted: 06 Apr 2015 20:05
by merdmann
Cool; works:

Code: Select all

"New"
 $workspace = "D:\\Michael\\OneDrive\\workspace";
 goto $workspace;
 $p = $workspace . "\\" . "<date yyyymmddhhmm>" . "-" . rand(0);
 new($p,"dir");
 goto $p;
Thankx :-)