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)
so in the text1.text: you will enter a number then
it will automatically execute the dos.exe then it will show the result it the dos prompt and i wanted this not to show anymore the dos prompt... i want
the result to show in the listbox or textbox
That is not a DOS program. That is a compiled .exe, and nobody here will run an exe. I'd bet that it gets removed by the mods, as they don't want anybody downloading .exe's from this site.
A DOS program is a text program. You can EDIT it or you can run it. I wanted to EDIT it to see what it does. I found an .exe, which you can't make in DOS.
Sorry.
I won't run an exe. I need source code. If you don't have the source code, all we need is to know what the program does. If it is simple, it can probably be done with a few lines of VB code. Sorry, I can't take the chance of running unknown exe's on this system.
when u enter a number it will generate the key... so i want this to be in vb
calling the dos.exe it is possible? like Text1.Text u enter a number
then u make a button say "GENERATE" when i click the button will
show up the generated key and its a "command prompt" window
then i want not to show anymore the "command prompt" i want only
to be displayed in the list box...
Text1.Text: Enter Number -> GENERATE -> "now they generated the code
and it will display in command prompt"
the displayed code in command prompt (i want to hide this) -> send to list1box