Click here to Skip to main content
16,004,924 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to type on command window at an instance? Pin
barkanb20-Mar-07 6:06
barkanb20-Mar-07 6:06 
AnswerRe: How to type on command window at an instance? Pin
Dave Kreskowiak20-Mar-07 6:13
mveDave Kreskowiak20-Mar-07 6:13 
GeneralRe: How to type on command window at an instance? Pin
barkanb20-Mar-07 6:23
barkanb20-Mar-07 6:23 
QuestionRe: How to type on command window at an instance? Pin
barkanb20-Mar-07 7:07
barkanb20-Mar-07 7:07 
AnswerRe: How to type on command window at an instance? Pin
Dave Kreskowiak20-Mar-07 7:23
mveDave Kreskowiak20-Mar-07 7:23 
AnswerRe: How to type on command window at an instance? Pin
barkanb20-Mar-07 20:58
barkanb20-Mar-07 20:58 
GeneralRe: How to type on command window at an instance? Pin
Dave Kreskowiak21-Mar-07 1:39
mveDave Kreskowiak21-Mar-07 1:39 
GeneralRe: How to type on command window at an instance? Pin
barkanb21-Mar-07 4:19
barkanb21-Mar-07 4:19 
You are right about the code. It is working for cmd.exe or notepad.exe.. I also tested the code below tried a trick to work on cmd but second writeline command executes for cmd.exe only. I also tried SendKey.SendWait(). Do you think there is something to do with security permissions? Because when I make RedirectStandardInput = True, command window is opened but not responding(blank). That's why I am saving the debug info into a txt file.

Dim objProcess As New Process
With objProcess.StartInfo
.UseShellExecute = False
.CreateNoWindow = False
.FileName = "cmd"
.RedirectStandardInput = True
.RedirectStandardOutput = True
.RedirectStandardError = False
End With
objProcess.Start()

Dim param(2) As String
param(0) = Chr(34) & CurDir() & "/mon.exe" & Chr(34) & " 10.0.0.99 4000 > C:\a.txt"
param(1) = "SET IP 10.0.0.98 > C:\b.txt"
kb.WriteLine(param)
kb.WriteLine(param(1))



B.B.
QuestionRe: How to type on command window at an instance? Pin
barkanb21-Mar-07 7:23
barkanb21-Mar-07 7:23 
AnswerRe: How to type on command window at an instance? Pin
Dave Kreskowiak21-Mar-07 8:40
mveDave Kreskowiak21-Mar-07 8:40 
AnswerRe: How to type on command window at an instance? Pin
barkanb22-Mar-07 0:46
barkanb22-Mar-07 0:46 
GeneralRe: How to type on command window at an instance? Pin
Dave Kreskowiak22-Mar-07 2:20
mveDave Kreskowiak22-Mar-07 2:20 
QuestionNumericUpDown displays too many digits while it has focus Pin
ChrisDavidson20-Mar-07 5:50
ChrisDavidson20-Mar-07 5:50 
AnswerRe: NumericUpDown displays too many digits while it has focus Pin
Dave Kreskowiak20-Mar-07 6:10
mveDave Kreskowiak20-Mar-07 6:10 
GeneralRe: NumericUpDown displays too many digits while it has focus Pin
ChrisDavidson20-Mar-07 8:32
ChrisDavidson20-Mar-07 8:32 
GeneralRe: NumericUpDown displays too many digits while it has focus Pin
Dave Kreskowiak20-Mar-07 8:44
mveDave Kreskowiak20-Mar-07 8:44 
QuestionHow different size font insert in a DataGridView cell Pin
Che YoungSoo20-Mar-07 5:06
Che YoungSoo20-Mar-07 5:06 
Questioncontrols Pin
WhiteGirl2320-Mar-07 4:55
WhiteGirl2320-Mar-07 4:55 
AnswerRe: controls Pin
Dave Kreskowiak20-Mar-07 6:18
mveDave Kreskowiak20-Mar-07 6:18 
QuestionProblem with controlbox Pin
dBrong20-Mar-07 4:42
dBrong20-Mar-07 4:42 
AnswerRe: Problem with controlbox Pin
Johan Hakkesteegt21-Mar-07 2:54
Johan Hakkesteegt21-Mar-07 2:54 
GeneralRe: Problem with controlbox Pin
dBrong22-Mar-07 11:27
dBrong22-Mar-07 11:27 
QuestionHow can I read a value from a XML file? Pin
JUNEYT20-Mar-07 3:27
JUNEYT20-Mar-07 3:27 
AnswerRe: How can I read a value from a XML file? Pin
Dave Kreskowiak20-Mar-07 4:53
mveDave Kreskowiak20-Mar-07 4:53 
GeneralRe: How can I read a value from a XML file? Pin
JUNEYT20-Mar-07 9:22
JUNEYT20-Mar-07 9:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.