Question:
how do i run dos commands continuesly for some events from vb.net?
ronald r
2008-10-03 07:38:10 UTC
Dos commands from vb.net
Four answers:
kamaraj
2008-10-03 17:05:05 UTC
put in timer



thanks

kamaraj.s
?
2016-10-19 09:23:36 UTC
that's finished via employing the residing house windows Script Host. First, create an occasion of the article WScript.Shell. Then, use its Run approach to execute the DOS command. as an occasion, say your HTML web site has a button which will run the DIR command while clicked. The onclick jscript function could seem something like this: ------------------------- function btnDIR_onclick() { var WshShell = new ActiveXObjec("WScript.Shell"); WshShell.Run("%comspec% /c DIR"); WshShell.end; } ---------------------------- The %comspec% string interior the argument for Run() specifies the direction and document call of the command interpreter, Cmd.exe.
Feroz H
2008-10-03 07:43:21 UTC
Hey try this.. it worked for me..





Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click



Dim s As Process

s.Start("cmd.exe")



End Sub
anonymous
2008-10-04 19:55:41 UTC
Use the Shell command.



Dim strDOS_Command as String

Dim x as Double



strDOS_Command="chkdsk /F"



x=Shell(strDOS_Command)


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...