You are not logged in.

#1 25 Aug 2015 17:53

Batcher
Member
Registered: 20 Jul 2015
Posts: 56

starting vbs scriptst from batch

On my windows vista computer vbs scripts don't run they just open with notepad is there anyway to get them to run using batch mabey by making a self compiled hybrid ?

Offline

#2 25 Aug 2015 18:34

npocmaka
Member
From: Bulgaria
Registered: 03 Dec 2009
Posts: 446

Re: starting vbs scriptst from batch

cscript /e:vbscript /nologo "c:\someScript.vbs"

or

wscript "c:\someScript.vbs"

Probably you've changed default handler of .vbs extension with right click -> "open with".This is curable - check and edit HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.vbs\OpenWithList

Offline

#3 25 Aug 2015 21:51

Batcher
Member
Registered: 20 Jul 2015
Posts: 56

Re: starting vbs scriptst from batch

Thanks I am also not able to open .hta files I have searched for mshta on my computer but I can't find it is there a way to fix this as well ?

Offline

Board footer

Powered by