PowerShell: Take the structure of a directory and its files to xml file

This simple script prompts the user to select a folder and browse through to take the files and folders to create an XML with the folder structure and files.Este simple script solicita al usuario que seleccione una carpeta y navega a traves de el para tomar los archivos y carpeta

 
 
 
 
 
5 Star
(2)
2,869 times
Add to favorites
Storage
2/16/2012
E-mail Twitter del.icio.us Digg Facebook
  • Limit depth
    1 Posts | Last post October 06, 2017
    • Is there a way to modifiy the script to only retrieve a limited depth of folders?
  • nothing happens.
    3 Posts | Last post September 02, 2013
    • After running the script it does not open any dialogue box. Actually nothing happens. Any idea? 
    • The Script just contains functions. You have to call the function Directory2Xml.
    • Ankit Nigam:
      - Open your Windows PowerSehll ISE
      - Open the Dierectory2Xml.ps1
      - Press F5
      - On the command prompt type Directory2Xml
      - Select the folder
      If you browse the folder you can find a Tree.xml with a tree of files and directories.
      
      jossif:
      Thanks, you are right.