knowmeifyou
Active member
- Joined
- Jun 16, 2013
- Messages
- 26
- Programming Experience
- Beginner
hello im automating command prompt with the use of autoit
im using autoit because some of the command doesnt work directly without using third party control
like telnet
this is my codes
what im trying to do here is i want to read the output of command prompt.
but using the codes above it gives me 0 as output
im using autoit because some of the command doesnt work directly without using third party control
like telnet
this is my codes
Imports AutoItX3Lib
Dim AutoitCommand As New AutoItX3
With AutoitCommand
.Run("cmd.exe", "", nShowFlags:=1)
.WinWaitActive("Administrator: C:\Windows\system32\cmd")
If .WinExists("Administrator: C:\Windows\system32\cmd") Then
Dim a = .WinGetText("[CLASS:cmd.exe]", "")
MsgBox(a)
End If
End With
what im trying to do here is i want to read the output of command prompt.
but using the codes above it gives me 0 as output