1. #1
    Senior Member Follow User Gallery
    Join Date
    Jun 2011
    Location
    Cape Town
    Posts
    158

    Default Q: Creating folder

    Hi

    I am sure this has been asked a million time but couldn't actually find it in the search.

    I have used the dll from Marcus and it all works. The note even says it created the folder but no folder was created. I am using the stock standard code from Marcus in a button.

    [IButton,"New folder",,
    //the full path to the new folder
    [VarSet,folderName,"C:/whatever folder here"]
    [MessageOK,folderName]
    [VarSet,folderExists,[FileExecute,[Var,dllPath],"FolderExists",folderName]]
    [If,folderExists,
    [Note,"Folder exists. Operation cancelled.",,3]
    [Exit]
    ,//else no folder
    [VarSet,err,[FileExecute,[Var,dllPath],"MakeFolder",folderName]]
    [If,err,[Note,"An error occurred.",,2],[Note,"Folder created",,2]]
    ] // if statemen close
    ] // button close

  2. #2
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    Are you setting the dllPath variable?

  3. #3
    Senior Member Follow User Gallery
    Join Date
    Jun 2011
    Location
    Cape Town
    Posts
    158

    Default

    Hi Marcus

    I feel a bit stupid but at least if this happens someone else might learn from it as well. The routine call wasn't part of the button or execution so wasn't set properly :/

    Thanks for quick reply though

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •