powershell - How to to copy all the files available in my TFS source server to a folder in a directory? -


i want copy files available in tfs source server folder in directory. tried below code error coming while achieving same. can suggest solution?

ps> c:\windows\system32> get-tfsitemproperty $/myfirsttfsproj -r `     -server xyzc011b| {$_.checkindate -gt (get-date).adddays(-150)} |     copy-item  d:\john\application1 -destination c:\test -whatif  copy-item : input object cannot bound parameters command either because command not take pipeline input or input , pr operties not match of parameters take pipeline input. @ line:2 char:14 +     copy-item  <<<<  d:\deepu\silverlightapplication5 -destination c:\test -w hatif 

i create workspace/workfolder mapping , use tf.exe tool files @ date interested in e.g.:

ps\> cd <root_of_workfolder_on_local_harddrive> ps\> tf . /r "/v:d$((get-date).adddays(-150))" 

if isn't final destination copy dir contents destination. if don't need workspace longer, delete it.

btw use powertool cmdlet quite bit find useful queries. instance, afaict, there no equivalent of "tf get" need pull down files server. iow, can't use copy-item copy files tf server. have use tf command retrieve file server.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -