Wednesday, 19 July 2017

working with Directories

static void clearDirectory(Args _args)

{

    System.String[] files;
    int             filecount;
    int             i;
    if (WinAPI::folderExists(OGOParameters::find().TIFFFileDirectory))
    {
        files = System.IO.Directory::GetFiles(OGOParameters::find().TIFFFileDirectory);
        filecount = files.get_Length();
        for(i=0; i < filecount; i++)
        {
            System.IO.File::Delete(files.get_Item(i));
        }
    }

}

No comments:

Post a Comment