hello, anyone can help me with vb project about dos -> vb?
VB Code:
Private Sub cmdGO_Click() Text2.Text = "C:\pm.exe" loader End Sub Private Sub loader() Dim CommandWindowName As String Dim SendToDos As String Clipboard.Clear SendToDos = Text1.Text Clipboard.SetText SendToDos + Chr$(13) Dim lFoundWindow As Long Dim manu As Long Dim lOK As Long Dim lOK1 As Long Dim X As Variant z = Text2.Text Shell z, vbHide lFoundWindow = FindWindow(vbNullString, z) manu = FindWindow(vbNullString, "Form1") lOK1 = ShowWindow(lFoundWindow, 9) lOK1 = ShowWindow(lFoundWindow, 10) SendKeys "% ee", 1 SendKeys "% ep", 1 lOK = SetForegroundWindow(manu) lFoundWindow = 0 lOK = 0 lOK1 = 0 End Sub
This is the code.. when you enter in a textbox and the result will show in the dos prompt... i want this dos prompt not to be displayed anymore then i want the result to be displayed in listbox or textbox (multiline)
p.s for my english...
thanks..




Reply With Quote