Create a Folder Using Windows PowerShell.

Uses the .NET Frameworks and Windows PowerShell to create a new folder on a computer.

 
 
 
 
 
2.9 Star
(14)
Add to favorites
Storage
8/10/2009
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Where is the script?
    2 Posts | Last post July 20, 2012
    • I can't seem to find a download buton to download the script file. I would like to have a look at it. Where is it?
      
      Cheers, TM
    • It's a one-liner, just copy that bottom line to make it work...if you wanted to add a folder to the user's docs folder you would do something like this...
      
      $DocsFolder = [System.Environment]::GetFolderPath("MyDocuments")
      #Finkle's submission on the next line
      $DataFolder = [IO.Directory]::CreateDirectory($DocsFolder + "\NewFolder")
      
      Not really a "script", but useful info in managing where data goes.