Execute a .vbs automatically from a web page in Windows 2000 Server or any windows for that matter

Posted on 2004-11-08
Last Modified: 2010-04-06

I programmed a vbscript file that runs scandisk and it works fine, but when I load it from a web page locally, there is a box that asks me if I want to download the .vbs file or run it.  I don't want this box to appear anymore, I want it to be executed automatically.  Is there something that I can do in the file association for .vbs files for that and if so, how?

By the way I programmed this for a Windows 2000 Server platform, but I got the same problem on XP so if you have an answer for any windows, please tell me.

Thanks for your time.
Question by:youppi69
    1 Comment
    LVL 13

    Accepted Solution

    That would be an extreme security risk. Imagine if your script deleted all the files on the harddrive rather than ran scandisk.

    Can't be done.

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    Suggested Solutions

    Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa‚Ķ
    This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
    The viewer will learn how to dynamically set the form action using jQuery.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now