Passing variables to a batch file from vbscript created by html form

SDAamupt

New Member
I'm in the process of creating a web portal for bulk new user creation on both our AS400 and Domain, I've been able to get everything to work except for passing the variables from the HTML form to the batch files.The batch files already existed and to keep this as simple as possible I decided to reuse them as this will be a strictly internal application. I've declared my variables to be the input from the form and set them to be called by the vb script when running the batch file, however they are not being passed as the variables but as what is stated in the code. Can someone tell me what I'm doing wrong as I've not been able to find much information from searching the web on this problem?If you need more information please let me know and I'll provide it. \[code\]<script language="VBScript">strCode = textbox0.ValuestrName = textbox1.ValuestrIPMG = textbox2.ValuestrServer = textbox3.ValueSub isetupdim shellset shell=createobject("wscript.shell")shell.run "N:\wwwroot\users\iSETUP01.bat strCode strName strIPGM strServer"set shell=nothingEnd SubSub wsetup()dim shellset shell=createobject("wscript.shell")shell.run "N:\wwwroot\users\wSETUP.bat strCode strIPGM"set shell=nothingEnd Sub</script>\[/code\]
 
Back
Top