

vbs files from Open (running) them to Edit.

You can protect yourself from these malicious programs if you have up-to-date antivirus code resident. If its enabled, the Windows Script Host Settings dialog box will poppup. To find out if the Windows Scripting Host is enabled on your PC: Its complexity is low, at least, the complexity to write virus code. WSH can be used to get access to the Windows commandshell, file system, and registry. WSH is also included when one downloads Internet Explorer 5. It ships as an integral part of Windows 2000 and Windows XP. Microsoft built the Windows Scripting Host (WSH) as an application to run vbscript programs. They are often written in VBScript which is a scripting language used to automate tasks without user intervention (or perhaps, one even knowing the script is running). OShell.ShellExecute "wscript.exe", WScript.The majority of viruses recently have been email-based. Set oShell = CreateObject("Shell.Application") SParms = " " & WScript.Arguments(i) & sParms 'Run this script under elevated privilegesįor i = -1 To 0 Step -1 If > 0 Then If WScript.Arguments(-1) "|" then bElevate = True This is source code from Microsoft technet: '. Use runas /noprofile /user:mymachine\administrator your_script.vbs from your user command lineįinally you can add UAC directly to your script:

You can either start your command prompt as Administrator You have to have privileges to run your script. This is in case you need to elevate the rights of your script which is not yet your case: You probably either rights issue - you don't have rights to execute your script on your desktop or you maybe the scripting is blocked altogether? More information is needed from you - what kind of script is that? The best would be to provide the source code + what are the rights on the directory (or directory chain) where you try to execute your code. Based on comment from Peter (thank you for that), I edit my answer.
