Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to Execute an EXE File from ASP/JavaScript?

Status
Not open for further replies.

JuanjoZun

Programmer
Jul 20, 2002
82
MX
I need to Execute an Exe File from an ASP page...


Any Ideas?

Thanks.

Juanjo

Follow the dark side, so you can reach the light.
 
Not on the users machine, cept maybe some activeX hack, but you don't want to do that. with ASP, and on your server, maybe. depends on your server config. I'm not sure of the code though.
 
My reasons are:
I'm making a mini-chat between operators (in the building) and a monitor (In the Informatic Area). the operators has a TouchScreen... so, If I want to talk with them, I'm trying to use the Keyboard on Screen from Accesibility (Windows). So, in the screen of the operators would be shown chat screen and the keyboard from windows.

Am I clear?

thanks

Juanjo

Follow the dark side, so you can reach the light.
 
You could make your own keyboard on the web page to enter the data into a textbox of a form that submits to the chat program. Here's a quick and dirty example I whipped up of a javascript keyboard.

Code:
<html>
<head>
<script>
var keys=[['1','2','3','4','5','6','7','8','9','0','-','=','<-'],
          ['Q','W','E','R','T','Y','U','I','O','P','[',']','\\'],
          ['A','S','D','F','G','H','J','K','L',';','\''],
          ['Z','X','C','V','B','N','M',',','.','/']];
function init(){
  var output='';
  for(var i=0;i<keys.length;i++){
    output+=&quot;<div style=\&quot;margin-left:&quot;+(i*15)+&quot;\&quot;>&quot;
    for(var j=0;j<keys[i].length;j++){
      output+=&quot;<input type=button class=key onclick=add(escape(this.value)) value=\&quot;&quot;+keys[i][j]+&quot;\&quot;>&quot;
    }
    output+=&quot;</div>&quot;
  }
  document.getElementById(&quot;keyboard&quot;).insertAdjacentHTML(&quot;afterBegin&quot;,output);
}
function add(key){
  if(unescape(key)=='<-'){
    document.f.input.value=document.f.input.value.substring(0,document.f.input.value.length-1);
  }else{
    document.f.input.value+=unescape(key)
  }
}

</script>
<style>
.key{
  width: 30px;
  height: 30px;
}
</style>
</head>
<body onload=&quot;init()&quot;>
<form name=&quot;f&quot; action=&quot;addToChat.asp&quot;>
<input type=&quot;text&quot; name=&quot;input&quot; size=&quot;50&quot; readonly>
<div id=&quot;keyboard&quot;>
<input type=&quot;button&quot; value=&quot;Space&quot; style=&quot;width:400px&quot; onclick=&quot;add('%20')&quot;>
</div>
</form>
 
Hey!! Adam0101... your work is perfect... I wouldn't expect solve my problem in that way, but I'll use your recommendation...

Thanks you very much. [peace] [pipe]

Follow the dark side, so you can reach the light.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top