{"id":147,"date":"2014-12-08T21:36:38","date_gmt":"2014-12-09T02:36:38","guid":{"rendered":"http:\/\/www.dev-notes.com\/blog\/2014\/12\/08\/running-vbscript-in-32-bit-mode-on-a-64-bit-windows-machine\/"},"modified":"2014-12-08T21:36:38","modified_gmt":"2014-12-09T02:36:38","slug":"running-vbscript-in-32-bit-mode-on-a-64-bit-windows-machine","status":"publish","type":"post","link":"https:\/\/www.dev-notes.com\/blog\/2014\/12\/08\/running-vbscript-in-32-bit-mode-on-a-64-bit-windows-machine\/","title":{"rendered":"Running VBScript in 32-bit mode on a 64-bit Windows machine"},"content":{"rendered":"<p>I have a legacy VBScript program that has been recently been migrated to a new 64-bit Windows server by a system administrator due to a policy set by a higher power.  By default, VBScript executed in 64-bit Windows automatically runs as a 64-bit program.  Because I have reasons to have this program run in 32-bit mode, I modified my batch file to execute my program in a different way.<\/p>\n<p>This is the <b>BEFORE<\/b> picture.  When this batch file is run in 64-bit Windows, it will execute in 64-bit mode.<\/p>\n<pre class=\"code\">\ntime \/t\ncscript ThisIsMyVbscriptProgram.vbs\ntime \/t\n<\/pre>\n<p>Below is the <b>AFTER<\/b> picture.  Note that I am passing my script into a new command prompt environment in the Windows SYSWOW64 folder; this new environment is strictly in 32-bit mode.<\/p>\n<pre class=\"code\">\ntime \/t\n%WINDIR%SYSWOW64cmd.exe \/c cscript ThisIsMyVbscriptProgram.vbs\ntime \/t\n<\/pre>\n<p>As a side note: WOW stands for &#8220;Windows on Windows&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article shows a simple step to take to run a VBScript file in 32-bit mode on a 64-bit Windows machine.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,26],"tags":[],"class_list":["post-147","post","type-post","status-publish","format-standard","hentry","category-vbscript","category-windows"],"_links":{"self":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":0,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}