none
Create Folder using powershell command RRS feed

  • Question

  • Hi All,

             I have requirement to create the folder using power-shell command.Can any one help me how can I create the folder by passing the parameter


    Thanks,

    Sid


    • Edited by SP Assest Thursday, May 1, 2014 1:54 PM
    Thursday, May 1, 2014 1:54 PM

Answers

  • New-Item -ItemType Directory -Path <your-path>
    If your question was how to create a Directory?
    • Marked as answer by SP Assest Friday, May 2, 2014 12:35 PM
    Thursday, May 1, 2014 2:11 PM

All replies

  • New-Item -ItemType Directory -Path <your-path>
    If your question was how to create a Directory?
    • Marked as answer by SP Assest Friday, May 2, 2014 12:35 PM
    Thursday, May 1, 2014 2:11 PM
  • Hi All,

             I have requirement to create the folder using power-shell command.Can any one help me how can I create the folder by passing the parameter


    Thanks,

    Sid


    Same as batch:

    md <foldername>


    ¯\_(ツ)_/¯

    Thursday, May 1, 2014 2:13 PM
  • Hi All,

             I have requirement to create the folder using power-shell command.Can any one help me how can I create the folder by passing the parameter


    Thanks,

    Sid


    Same as batch:

    md <foldername>


    ¯\_(ツ)_/¯

    In PowerShell scripts I personally do not like to use other than PowerShell commands :)
    Thursday, May 1, 2014 2:15 PM
  • Hi All,

             I have requirement to create the folder using power-shell command.Can any one help me how can I create the folder by passing the parameter


    Thanks,

    Sid


    Same as batch:

    md <foldername>


    ¯\_(ツ)_/¯

    In PowerShell scripts I personally do not like to use other than PowerShell commands :)

    MD is a PowerShell command!

    Type : help MD to see.


    ¯\_(ツ)_/¯

    Thursday, May 1, 2014 2:41 PM