sirimit
asked on
Send parameters to EXE file by Asp.net(VB)
Hello expert ,
i can ran BAT file by this code
<script language="VB" runat ="server">
Sub Page_load(sender as object, E as Eventargs)
Dim s As New System.Diagnostics.Process
s.StartInfo.FileName = "d:\myfile.bat"
s.Start()
end sub
</script>
but i had 2 questions
1 . how i send some parameters to EXE filev(code it asp.net file)
2. how i get parameters in BAT file (code in BAT file)
i can ran BAT file by this code
<script language="VB" runat ="server">
Sub Page_load(sender as object, E as Eventargs)
Dim s As New System.Diagnostics.Process
s.StartInfo.FileName = "d:\myfile.bat"
s.Start()
end sub
</script>
but i had 2 questions
1 . how i send some parameters to EXE filev(code it asp.net file)
2. how i get parameters in BAT file (code in BAT file)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i found new problem
if i edit test.bat file is "SHUTDOWN -r -t 01"
and aspx file is
**************************
Dim s As New System.Diagnostics.Process
s.StartInfo.FileName = "d:\test.bat"
s.Start()
**************************
when i call aspx file it not show any error but
server not restart
please suggest me
thank you so much