Home >

powershell as a folder tool for 'Ye old' file test setup

23. February 2011

I usually find myself creating loads of folder and sub structures to run test in while doing BizTalk development.

And at some point in time, end up with creating a script to setup these folders. It's so much easier with powershell:

 

 

$rootpath = "c:\" 

$testCatalog = "Test2"

$subsystems = "sys1","sys2", "sys3", "sys4"

$subfolders = "in","out"

 

foreach ($sub in $subsystems)

    foreach ($folder in $subfolders)

    { 

        mkdir ($rootpath + $testCatalog + "\" + $sub + "\" + $folder) 

    } 

}

 


Michael Høtoft  

Comments are closed