{"id":50,"date":"2011-04-05T14:59:17","date_gmt":"2011-04-05T20:59:17","guid":{"rendered":"http:\/\/til4code.wordpress.com\/?p=50"},"modified":"2011-04-05T14:59:17","modified_gmt":"2011-04-05T20:59:17","slug":"vbscript","status":"publish","type":"post","link":"https:\/\/code.angelmarquez.com\/blog\/2011\/04\/05\/vbscript\/","title":{"rendered":"VBScript"},"content":{"rendered":"<p>From all the NSIS posts I made you&#8217;d think that was my main job. Not the case. But I think I was <a href=\"http:\/\/en.wikipedia.org\/wiki\/Stockholm_syndrome\">starting to like it<\/a>.<\/p>\n<p>I was pulled installer work to do more routine stuff so I haven&#8217;t had too many &#8220;Today I learned &#8230;&#8221; opportunities. Today I&#8217;m working some VBScript for some odd jobs. It&#8217;s one of those silly languages that I relearn and forget as need arises. Going to use this entry as a cheat-sheet to accelerate the relearning phase when I next need to.<\/p>\n<ul>\n<li>VBScript Sub Return Values<br \/>\nSub MyFunc()<br \/>\nMyFunc = &#8220;retval&#8221;<br \/>\nSub End<\/li>\n<li>Useful Objects:\n<ul>\n<li>WSH Object Reference:\u00a0<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/f51wc7hz(v=VS.85).aspx\">http:\/\/goo.gl\/XwvV5<\/a><\/li>\n<li><a href=\"http:\/\/www.devguru.com\/technologies\/vbscript\/14048.asp\">Set oFSO = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<\/a><\/li>\n<li>Set oShell = WScript.CreateObject (&#8220;WScript.Shell&#8221;)<\/li>\n<li><a href=\"http:\/\/www.devguru.com\/technologies\/vbscript\/14108.asp\">Set oRegEx = New RegExp<\/a><\/li>\n<li><a href=\"http:\/\/www.devguru.com\/technologies\/vbscript\/13992.asp\">Set oDictionary = CreateObject(&#8220;Scripting.Dictionary&#8221;)<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Misc\n<ul>\n<li>WScript.Echo now<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>From all the NSIS posts I made you&#8217;d think that was my main job. Not the case. But I think I was starting to like it. I was pulled installer work to do more routine stuff so I haven&#8217;t had too many &#8220;Today I learned &#8230;&#8221; opportunities. Today I&#8217;m working some VBScript for some odd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[21],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-vbscript","tag-vbscript-2"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/comments?post=50"}],"version-history":[{"count":0,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/posts\/50\/revisions"}],"wp:attachment":[{"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/media?parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/categories?post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code.angelmarquez.com\/blog\/wp-json\/wp\/v2\/tags?post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}