- December 8, 2007
- 13
- 0
yep, indeed that seems to be the case. Unfortunately I cannot think any good sollution how to "fix" that issue. Dunno why MS has decided to remove that .exe? Maybe lot of companies are using it in their scripts and MS is forcing them to buy the bussiness edition, who knows.
We cannot use taskkill for two reasons:
1) XP doesnt have it
2) doesnt seem to work correctly after S3 (actually restarting MP after it doesnt work for some odd reason).
So Vista Home Edition users should use the old restart.vbs (that uses the WMI to kill MP process and fails randomly in that as S3 triggers reset for the WMI and could cause the process list to be no up to date when we are trying to kill MP).
That sucks. The old script doesn't work for me either. Does VBScript at least let you detect which OS is running and call the right command based on that? I'm a VB programmer by trade and I might be able to figure it out but I won't have time until this weekend at the earliest.
I ment the 2 month old .vbs script. Does it work for you? At least no people have been reporting it to fail.
Most likely VBScript does support checking the version numbering from the OS (at least by using WMI, but that we want to try to avoid as its having its own issues with S3).
btw. I have no actual knowledge on the VBScript, just gathered some small info so that I was able to build that script. So if someone has more knowlegde / free time please feel free to provide few script lines that can be used to determine Vista Home edition (without using WMI) and I'll add support for that OS also (by using the old WMI based way for killing MP).
Hey Tourettes,
This worked on my XP Pro machine:
Code:
Dim oSh, oEx, OS
Set oSh=CreateObject("WScript.Shell")
Set oEx=oSh.Exec("%COMSPEC% /C ver")
Do While oEx.Status=0
WScript.Sleep 100
Loop
While Len(os)<1
os=Replace(oEx.StdOut.ReadLine,vbCrLf,"")
Wend
msgbox ("OS=" & os)
Found that one here:
VBScript - Determine OS
Hope that helps!