Mayayana
9/12/2011 3:11:00 AM
| When I double click either a .vbs or .wsf nothing happens, no messages.
|
Does the .vbs have the green scroll icon? That would
indicate that it's handled by wscript.exe, as it should be.
In Vista/7 there are various problems. One is that you
probably need to run elevated via right-click -> RunAs
for most tasks. (Another is that HTAs don't have such
an option.) Another is that since VBS has been used for
malware -- and VBS is mainly used only by system admins
-- many AV programs are set to *assume* any .VBS
running must be malware. Unfortunately, it's become
fashionable with both Windows and AV software *not*
to tell you when things are blocked due to restrictions!
If .vbs files were not properly assigned you'd see a generic
icon and a "What do you want to open this with?" window.
If there was a problem with WScript you'd see a message
about that missing or some such. If it just does nothing then
it's probably a restrictions issue. The functions are probably
just being blocked.
You might try a simple script, with UAC turned down,
run by right-click -> Run As Administrator, to see if that's the
problem. Example:
MsgBox "ok"
Just type that in Notepad and save as .VBS. Showing a
msgbox with admin rights *should* work, but I don't have
much experience with that problem. (I do a lot of scripting,
which is one of the myriad reasons that I avoid Vista/7,
and I haven't used AV for years.)