create folder RRS feed

  • Question

  • dear all

    i want to create folder has the current date name or any value contains current date

    but after i do this i check if this folder is present or not

    if yes then no creation

    Saturday, September 17, 2011 8:18 AM


  • Your question is not clear but if you need to create a folder having current date in its name then you may do it following way:

    LOCAL lcFolderName, loEx AS Exception
    lcFolderName = "d:\MyData" + DTOS(DATE())
    IF !DIRECTORY(lcFolderName)
        MKDIR (lcFolderName)
      CATCH TO loEX
        *-- Error when creating folder


    • Marked as answer by Alaa Mukhtar Saturday, September 17, 2011 10:23 AM
    Saturday, September 17, 2011 10:14 AM