| |
j
Posts: 5
Score: 0
Joined: 9/16/2004
From:
Status: offline
|
hey guys can sum1 help me here.. i dnt know what's wrong here? below is a vb script to launch a program (calculator at this one) from an onclick button. The bolded part below should execute calculator at this button called convert as explained below. Better off try viewing all of these code on a browser and u'll c what i mean.. cheers and one more thing:when user inputs some filename, how is it saved into a variable and so we can use it as a parameter of running file ??... hope to hear from anyone as soon as possible!!! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled Document</title> <SCRIPT type="text/vbscript"> <!-- Hide this script from incompatible Web browsers! sub submit_onclick Dim RetVal RetVal = Shell("C:\WINDOWS\CALC.EXE", 1) end sub <!-- --> </SCRIPT> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form name="form1" method="post" action=""> <input type="file" name="file" value="file" id="file"> Click Browse to view and select file/s to be converted. </form> <form name="form2" method="post" action=""> <p> <input type="submit" name="Submit" value="Convert"> Now click the "CONVERT" button to convert the selected files to Xml and it will generate a zip file and will store its contents inside. </p> </form> <form name="form4" method="post" action=""> <input type="submit" name="Submit3" value="Index"> Click here to view the contents of the zip file </form> <p> </p> </body> </html>
|
|