Results 1 to 1 of 1

Thread: Run an external application from aspx page

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2005
    Posts
    18

    Run an external application from aspx page

    i dont know why the command prompt is not "pop-up" to me...it just runs behind as i can see it stays in task manager (CMD.exe)...but i need the command promprt to be appeared after i click the buton1 .....

    btw, what's wrong with my code ?? plx help~~


    Code:
    <%@  Import Namespace="System.ComponentModel" %>
    <%@  Import Namespace="System.Diagnostics" %>
    <%@  Import Namespace="System.IO"%>
    <%@  Import Namespace="System.Diagnostics.Process" %>
    <%@ Page Language="vb" AutoEventWireup="false" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    	<HEAD>
    		<title>WebForm1</title>
    		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    		<meta name="vs_defaultClientScript" content="JavaScript">
    		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    	</HEAD>
    	<body MS_POSITIONING="GridLayout">
    		<form id="Form1" method="post" runat="server">
    			<INPUT id="Button1" style="Z-INDEX: 102; LEFT: 216px; WIDTH: 144px; POSITION: absolute; TOP: 176px; HEIGHT: 48px"
    				type="button" value="test" name="submit" runat="server" OnServerClick="Button1_ServerClick">
    			<script language='VB' runat="server">
    				
    				Sub Button1_ServerClick(ByVal sender As Object, ByVal e As EventArgs) 
    				
    				Dim proc As Process
    				proc = New Process()
    			    proc.start("cmd.exe")
    			   
    			    End Sub
    
    			
        
        
    			</script>
    		</form>
    	</body>
    </HTML>
    Last edited by billgatesionjp; Mar 6th, 2005 at 03:36 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width