passing data from an asp page to another application?
passing data from an asp page to another application?
(OP)
What I want to do is read and write to the parallel port
from a asp or aspx web page. I have written the program that can read and write to the parallel port, but need some way to get data from asp/aspx page to this application.
I have it working now by writing a file to the server then reading that file with my app. I'm looking for a more effcient way.
Is there a way to get application variables from an asp page to an exe.?
I've tried this from another web site
WshShell = CreateObject("WScript.Shell")
WshShell.Run("C:\ConsoleApplication1 "& sendValue)
WshShell = Nothing
But get access denied errors?
Whats the best way to do this?
I'm not a programmer so dumb it down the best you can :)
I'm using XP pro, vb.net Std and IIS
from a asp or aspx web page. I have written the program that can read and write to the parallel port, but need some way to get data from asp/aspx page to this application.
I have it working now by writing a file to the server then reading that file with my app. I'm looking for a more effcient way.
Is there a way to get application variables from an asp page to an exe.?
I've tried this from another web site
WshShell = CreateObject("WScript.Shell")
WshShell.Run("C:\ConsoleApplication1 "& sendValue)
WshShell = Nothing
But get access denied errors?
Whats the best way to do this?
I'm not a programmer so dumb it down the best you can :)
I'm using XP pro, vb.net Std and IIS





RE: passing data from an asp page to another application?
See if this works - create 2 files hello.vbs and hello.htm
hello.vbs
CODE
CODE
<body>
<script language="vbscript">
set objShell=CreateObject("Wscript.shell")
objShell.Run "wscript F:\scr\60009\hello.vbs",1,false
</script>
</body>
</html>
RE: passing data from an asp page to another application?
CODE
<body>
<script language="vbscript">
set objShell=CreateObject("Wscript.shell")
objShell.Run "wscript hello.vbs",1,false
</script>
</body>
</html>
RE: passing data from an asp page to another application?
I need a way to run it on the server. I found Aspexec.dll
that looks promising , but haven't got it working yet.
RE: passing data from an asp page to another application?
CODE
<body>
<%
set objShell=CreateObject("Wscript.shell")
objShell.Run "your.exe "&request("data"),1,false
%>
Done
</body>
</html>
RE: passing data from an asp page to another application?
Thank you for your help.