{"id":1269,"date":"2011-01-02T10:03:13","date_gmt":"2011-01-02T10:03:13","guid":{"rendered":"https:\/\/www.buarotti.ch\/?p=1269"},"modified":"2012-01-21T10:05:26","modified_gmt":"2012-01-21T10:05:26","slug":"vbs-script-beispiel-mit-parameter","status":"publish","type":"post","link":"https:\/\/www.buarotti.ch\/?p=1269","title":{"rendered":"VBS Script beispiel mit Parameter"},"content":{"rendered":"<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n' *****************************************************************\r\n ' * Autor: Buanet Production's\r\n ' * Version: 1.0\r\n ' * Date: 27.09.2008\r\n ' * Desc: Argumente an vbs \u00fcbergeben.\r\n ' *****************************************************************\r\n\r\n If wscript.arguments.count = 0 Then\r\n wscript.echo &quot;Es wurden kein oder kein g\u00fcltiges Argumente \u00fcbergeben! &quot;\r\n wscript.quit\r\n End If\r\n\r\n arg0 = wscript.arguments.unnamed.item(&quot;0&quot;)\r\n If wscript.arguments.count = 1 Then\r\n wscript.echo &quot;Es wurde ein Argumente \u00fcbergeben! &quot;\r\n If arg0 = &quot;start&quot; Then\r\n wscript.echo &quot;Starte Funktion Start&quot;\r\n Start()\r\n End If\r\n If arg0 = &quot;stop&quot; Then\r\n wscript.echo &quot;Starte Funiton Stop&quot;\r\n Stopp()\r\n End If\r\n wscript.quit\r\n End If\r\n\r\n Function Start()\r\n wscript.echo &quot;Funktion Start&quot;\r\n End Function\r\n\r\n Function Stopp()\r\n wscript.echo &quot;Funktion Stop&quot;\r\n End Function\r\n\r\n ' ** BENANNTE Argumente welche mit \/xy-argument: angegeben werden. **\r\n\r\n 'If wscript.arguments.named.exists(&quot;start&quot;) Then\r\n ' wscript.echo &quot;Start wurde \u00fcbergeben..&quot;\r\n 'End If\r\n\r\n 'If wscript.arguments.named.exists(&quot;stop&quot;) Then\r\n ' wscript.echo &quot;Stop wurde \u00fcbergeben..&quot;\r\n 'End If\r\n<\/pre>\n<h3>Related Images:<\/h3>","protected":false},"excerpt":{"rendered":"<p>&#8218; ***************************************************************** &#8218; * Autor: Buanet Production&#8217;s &#8218; * Version: 1.0 &#8218; * Date: 27.09.2008 &#8218; * Desc: Argumente an vbs \u00fcbergeben. &#8218; ***************************************************************** If wscript.arguments.count = 0 Then wscript.echo &quot;Es wurden kein oder kein g\u00fcltiges Argumente \u00fcbergeben! &quot; wscript.quit End If arg0 = wscript.arguments.unnamed.item(&quot;0&quot;) If wscript.arguments.count = 1 Then wscript.echo &quot;Es wurde ein Argumente [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1269","post","type-post","status-publish","format-standard","hentry","category-vbscript"],"_links":{"self":[{"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/posts\/1269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1269"}],"version-history":[{"count":3,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/posts\/1269\/revisions"}],"predecessor-version":[{"id":1272,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/posts\/1269\/revisions\/1272"}],"wp:attachment":[{"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}