I'm trying to run a .vbs script under 64Bit. When I run this script manually it will execute properly, but when launched by something else, it will run under 32bit and won't execute properly.
Here's my script:
Set WshShell = CreateObject("WScript.Shell") WshShell.Run Chr(34) & "C:\Users\Chris Nicol\Documents\SlickRun Scripts\Zune\RunZune.bat" & Chr(34), 0 Set WshShell = Nothing
Basically I want to force the use of
C:\windows\syswow64\cmd.exe, so that it will run correctly. I can't seem to get the syntax right and can't find help on this.
Here's the batch file and regedit file that I'm trying to execute:
@ECHO OFF regedit /s FeaturesOverride.reg "C:\Program Files\Zune\Zune.exe" exit
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Zune\Features] "Channels"="US,CA" "MusicVideos"="US,CA" "Picks"="US,CA" "Podcasts"="US,CA" "QuickMixLocal"="US,CA"