none
Powershell export RRS feed

  • Question

  • Morning,

    Sorry I am new to using powershell - it is a simple script to provide me a folder structure and files in a particular drive. I am struggling to work out why anything I try it will not export my results. The script is as follows so any help someone can offer would be appreciated:

    Get -ChildItem -Force "G:\Blah Blah Blah" -Recurse

    Thanks

    

    Monday, August 4, 2014 8:17 AM

Answers

  • Morning,

    Sorry I am new to using powershell - it is a simple script to provide me a folder structure and files in a particular drive. I am struggling to work out why anything I try it will not export my results. The script is as follows so any help someone can offer would be appreciated:

    Get -ChildItem -Force "G:\Blah Blah Blah" -Recurse

    Thanks

    

    Try to do like this.

    Get-ChildItem Get -ChildItem -Force "G:\Blah Blah Blah" -Recurse -Recurse |

    Export-Csv C:\Temp\Details.csv -NoTypeInformation



    Regards Chen V [MCTS SharePoint 2010]

    Monday, August 4, 2014 11:01 AM

All replies

  • What have you tried?  Have you tried Export-Csv?


    ¯\_(ツ)_/¯

    Monday, August 4, 2014 10:33 AM
  • Morning,

    Sorry I am new to using powershell - it is a simple script to provide me a folder structure and files in a particular drive. I am struggling to work out why anything I try it will not export my results. The script is as follows so any help someone can offer would be appreciated:

    Get -ChildItem -Force "G:\Blah Blah Blah" -Recurse

    Thanks

    

    Try to do like this.

    Get-ChildItem Get -ChildItem -Force "G:\Blah Blah Blah" -Recurse -Recurse |

    Export-Csv C:\Temp\Details.csv -NoTypeInformation



    Regards Chen V [MCTS SharePoint 2010]

    Monday, August 4, 2014 11:01 AM