hey everyone
ild like to open a command line by a button on my aspx page and make it do a statement. is this possible? and if so, whats the command for it.
thanks in advance
Do you mean you want to launch the "cmd.exe" program?
As a rule, the browser will not launch any program on the user's computer. Its a basic security issue. In addition, cmd.exe is platform specific.
Generally when you want to take actions on the users computer, you must write an ActiveX (again Windows specific).
Hi PLBLum
yes i meant cmd.exe, i already thought u couldnt launch it it would be a security breach indeed. so ActiveX. the thing is i want something relatively easy i have a datagrid with IP-Adresses and just want to Ping the selected one.
if i could use telnet too that would be great. Do u have any suggestions?
thanks for your reply
Hi,
I think he is talking about a "shell" command. I have tried to call a command that works in the cmd and it hangs in the background on my win2k and win2003 servers and does nothing. I can't even kill it on the win2k.
I even tried doing a xcopy and it just hung also and did nothing. The directory I'm trying to work on, it's also used by the same application to write several log files.
I used a command like this:
wSshell = Shell("c:\inetpub\wwwroot\test.exe -quiet")
Thanks,
Scott.
0 comments:
Post a Comment