Folder.Create

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Rene
    Indigo Rose Customer
    • Jun 2002
    • 14

    Folder.Create

    How can I create a folder with a name from a variable.
  • TimeSurfer
    Forum Member
    • Dec 2007
    • 479

    #2
    Originally posted by Rene View Post
    How can I create a folder with a name from a variable.
    As with alot of posts lately you should really read the help file that comes with AMS it will tell all. But here is the answer to your question.

    Code:
    varF = "drive:\\path\\foldertocreate"
    Folder.Create(varF);
    Now obviously you use can some global variables and/or a function to expand this further. And this is in no way a working example, it is simply a guide to show you how its done. If you should need help understanding the code above I suggest you consult the help file.

    Comment

    • SiNisTer
      Forum Member
      • Mar 2007
      • 187

      #3
      Just expanding on TimeSurfer...

      Code:
      --The Variable (the name of the folder you want to create)
      sFolder = "My Folder"
      Folder.Create ("C:\\"..SFolder)
      or

      Code:
      --Use the full path instead of simply the name of the folder you want to create
      
      SFolder = "C:\\My Folder"
      Folder.Create (SFolder)
      The help file is there for a reason you know. I believe it has some solid examples of this sort.Always make it a point to look through the help first then search in the forums before you post...There are hundreds of examples around!

      Comment

      Working...
      X