{"id":184,"date":"2013-07-12T08:38:19","date_gmt":"2013-07-12T08:38:19","guid":{"rendered":"http:\/\/test.bleuanus.nl\/index.php\/rtl-xl\/powershell-scripts\/"},"modified":"2018-12-11T16:09:09","modified_gmt":"2018-12-11T15:09:09","slug":"powershell-scripts","status":"publish","type":"post","link":"https:\/\/www.bleuanus.nl\/index.php\/2013\/07\/12\/powershell-scripts\/","title":{"rendered":"Powershell scripts"},"content":{"rendered":"<p class=\"last-modified\">This post was most recently updated on December 11th, 2018<\/p><p>rtlupdate.cmd<\/p>\n<pre title=\"code\" class=\"brush: c++;\">@echo offf:cd\\cd werkmap\\seriesdel uzg.xmlpowershell -file add-text.ps1 >serieslist.txtpowershell -file download_all.ps1del series.txtdel serieslist.txtdel temp.xml<\/pre>\n<p><strong>add-text.ps1<\/strong><\/p>\n<pre title=\"code\" class=\"brush: c++;\">#Define Variables$a = \"f:\\werkmap\\series\\series.txt\"$b = get-content $a#Define Functionsfunction append-text {   process{   foreach-object {$_ + \"index.xml\"}    }   } #Process Code$b | append-text<\/pre>\n<p><strong>\u00a0download_all.ps1<\/strong><\/p>\n<pre title=\"code\" class=\"brush: c++;\">$destination = \"f:\\werkmap\\series\\temp.xml\"$client = new-object System.Net.WebClientforeach ($i in $a) {    [xml]$client.DownloadFile( $i, $destination )\tadd-content -path uzg.xml -value (get-content $destination)#\ttype $destination\t}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This post was most recently updated on December 11th, 2018rtlupdate.cmd @echo offf:cd\\cd werkmap\\seriesdel uzg.xmlpowershell -file add-text.ps1 >serieslist.txtpowershell -file download_all.ps1del series.txtdel serieslist.txtdel temp.xml add-text.ps1 #Define Variables$a = &#8220;f:\\werkmap\\series\\series.txt&#8221;$b = get-content $a#Define Functionsfunction append-text { process{ foreach-object {$_ + &#8220;index.xml&#8221;} } } #Process Code$b | append-text \u00a0download_all.ps1 $destination = &#8220;f:\\werkmap\\series\\temp.xml&#8221;$client = new-object System.Net.WebClientforeach ($i in $a) { [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-184","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/posts\/184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/comments?post=184"}],"version-history":[{"count":1,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"predecessor-version":[{"id":299,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/posts\/184\/revisions\/299"}],"wp:attachment":[{"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bleuanus.nl\/index.php\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}