A Conversation for How to Avoid Computer Viruses

Prevent VBS and SHS filese _ever_ running

Post 1

Is mise Duncan

In Windows NT (and probably 98?) you can use the "assoc" command to say which executable is launched to run files with a given suffix.
By default, .shs and .vbs files are associated to the command interpreter which is why they run the code when you double-click them.
if you use the comand:
assoc .shs=txtfile
and
assoc .vbs=txtfile

Then, when you open the attachment, it will open it as a harmless text file rather than a potentially harmful script file.


Prevent VBS and SHS filese _ever_ running

Post 2

Kes

That sounds very useful.

To what file should I add these commands?


Prevent VBS and SHS filese _ever_ running

Post 3

Is mise Duncan

Noe - just run them from the console window (what used to be called the command prompt or dos box, when I was young smiley - winkeye )


Prevent VBS and SHS filese _ever_ running

Post 4

Cheerful Dragon

It sounds like the sort of thing you should be able to do something about in the registry. However, I couldn't find where you should change it on a brief hunt just now, so using the DOS prompt is probably the best way.


Prevent VBS and SHS filese _ever_ running

Post 5

Is mise Duncan

\HKEY_CLASSES_ROOT\.vbs [default]="txtfile"
but I tend to discourage editing of the registry if there is _any_ alternative.


Key: Complain about this post

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more