Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9066979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:50:26+00:00 2026-06-16T16:50:26+00:00

I have 10 .vbs file and incorporated them into a single .vbs file namely

  • 0

I have 10 .vbs file and incorporated them into a single .vbs file namely Main.vbs.Now if I double click on the main.vbs,my script got started to run. But I am looking for anyway can I run the .vbs file from the web browser? So that no one need to go to the directory where the Main.vbs kept and double clicked on it.

My Main.VBS contents:

Dim oShell : Set oShell = WScript.CreateObject ("WScript.Shell")
Dim FSO : Set FSO = CreateObject("Scripting.FileSystemObject")
oShell.CurrentDirectory = FSO.GetFile(Wscript.ScriptFullName).ParentFolder
oShell.run "A.VBS", 1, True
oShell.run "B.VBS", 1, True
oShell.run "C.VBS", 1, True
oShell.run "D.VBS", 1, True
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T16:50:27+00:00Added an answer on June 16, 2026 at 4:50 pm

    Yes you can if you use Internet Exlorer, but you will have to keep your IE security settings low to run it and even then you could have a prompt to confirm.
    All depends on which version and SP of Windows, which security updates , which version of IE and which settings in IE.

    I suggest taking a second look at why you would start a local script this way. You can easily make and distribute a shortcut that starts your script without hassle of settings and prompts.

    Ik you need a User Interface you can use Vbscript build-in or you could use a .HTA file instead of a .html or .asp file, security is less an issue with these files.

    example: test.html

    <script type="text/vbscript" src="c:\temp\test.vbs"></script>
    

    and test.vbs

    Const ForReading = 1, ForWriting = 2
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set writefile = fso.OpenTextFile("c:\temp\output.txt", ForWriting, True)
    writefile.write "test"
    writefile.close
    

    When i load test.html i get two prompts and when i confirm i get the output.txt in c:\temp

    And last here an example with a .hta file, save it as eg test.hta, alwyas use IE when using ActiveX or Vbscript

    <HTML>
    <HEAD>
    <SCRIPT language="VBScript">
    <!--
    Const ForReading = 1, ForWriting = 2
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set writefile = fso.OpenTextFile("c:\temp\output.txt", ForWriting, True)
    writefile.write "test"
    writefile.close
    '-->
    </SCRIPT>
    </HEAD>
    <BODY>
    </BODY>
    </HTML>
    

    or

    <HTML>
    <HEAD>
    <script type="text/vbscript">
      sub test
        const runminimized = 7
        const dont_wait_for_end = false
        Set wshShell = CreateObject("WScript.Shell")
        WshShell.Run "c:\temp\test.vbs",runminimized, dont_wait_for_end
      end sub
    </script>
    </HEAD>
    <BODY>
      these are the instructions
      <button onclick="vbscript:test" >Run the script</button>
    </BODY>
    </HTML>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a 6 .vbs files. and I incorporated them into a file said
I have a VBS script that is to copy a file from an old
I have this script saved in test.vbs: Set FSO = CreateObject(Scripting.FileSystemObject) Set File =
I have a VBScript script file saved as a .vbs on my desktop: pastebin.com/Nhj5Rs0j
I have a VBS list script to list file,with various dates. All of the
I have a file invisible.vbs having following script Set WshShell = WScript.CreateObject(WScript.Shell) obj =
I have a vb script (say myScript.vbs) which is used to monitor a file
I Have an old vbs script file being kicked off by an AutoSys job.
I have two .vbs file say a.vbs and b.vbs.Now both are written for the
I have a VBS script which I need to run on a monthly basis

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.