Creating a folder

Hello, I need to create a new folder for every file created by a function. Do you know a C/AL-Function? Or do I have to create an Windows Scripting Host Object (Automation)?

Why not Try run “SHELL(‘cmd’,’/C’,‘MD FOLDERNAME’);” ? Its the easiest and simplest way.

Yes - it works. An if I use the Return Code, Navision runs the SHELL modal. Thanks.

Actually, Thanks for the Tip[:D]. Never thought about running SHELL in modal. In fact this is going to help me quite alot[;)]. Strange how sometimes the simple solutions are overlooked[:I].