Welcome to MSDN Blogs Sign in | Join | Help

Create file directory on the AOS fileserver from code

WinAPIServer does not have createDirectory method, so best option is to use ClrInterop.

static void createFileDirectory(Args _args)
{

     FilePath path;

     new InterOpPermission(InteropKind::ClrInterop).assert();

     System.IO.Directory::CreateDirectory(path);

     CodeAccessPermission::revertAssert();
}

This posting is provided "AS IS" with no warranties, and confers no rights.
Published Wednesday, June 20, 2007 1:46 PM by Palle Agermark

Comments

New Comments to this post are disabled
 
Page view tracker