Hi, we have a family of LabTalk callable X-Functions for interacting with folders in an Origin project (many have examples in documentation):
The one you specifically want is pe_mkdir:
http://www.originlab.com/doc/X-Function/ref/pe_mkdir
The others begin with "pe_" and are listed here:
http://www.originlab.com/doc/X-Function/ref/X-Functions-for-System
A handy method to determine if a folder already exists in a project is to use the exist() function in this manner:
if(exist(Run Data,25) == 0)
pe_mkdir "Run Data";
That creates the folder if it does not already exist.
To learn more about this, see the end of this page:
http://www.originlab.com/doc/LabTalk/ref/Exist-func
BTW- The exist() function is a good function to know about in general.
Thanks,
Chris Drozdowski
Originlab Technical Support