Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 31, 2012 05:41 AM by Mohammad Mujtaba
Dec 25, 2012 11:12 AM|LINK
I am having a Test.vbs file, exist on each client machine at C:/Test.vbs
I am trying to call Test.vbs file from a .aspx page by a html button as follows
My objective is to call C:/Test.vbs file of client machine from web appication.Using below code for ref.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
Set objWSH = CreateObject("WScript.Shell")
strCMD ="cscript.exe C:\Test.vbs"
<form id="form1" runat="server">
<input type="button" onclick="vbscript:RunScript">
Dec 25, 2012 05:08 PM|LINK
how can you be sure that the file is there on the client? Besides more and more browsers are hammered down for security reasons to prevent such scenarios. What is your intent in the first place as perhaps there's a way better alternative.
Dec 26, 2012 05:15 AM|LINK
Try to use ActiveX control, check this site:
Dec 26, 2012 09:40 AM|LINK
It is mandatory that the .VBS file should be present on client machine at C:\Test.vbs
Please look into this on urgent basis.
Dec 26, 2012 04:12 PM|LINK
What if, .vbs file is not present in the client machine?
Moreover, ActiveX works only on IE and are you sure that your customers user only IE to browser web?
Dec 31, 2012 05:41 AM|LINK
It is 100% mandatory to have .vbs file on user syste.
Kindly provide the solution if you have.