|
-
Jul 29th, 2006, 02:26 PM
#1
Thread Starter
Fanatic Member
sending commands
hi all i've been searching around the forums and found mixed answers to the topic of sending commands to a cmd.exe(command prompt) open window. is it possable? if so can someone show me how its done ? thanks for the help
-
Jul 29th, 2006, 02:49 PM
#2
Addicted Member
Re: sending commands
Yes, there is a module created by Kevin Wilson that executes commands in command-prompt, you'll need this module (modShellCommand):
You can get this module here:
https://secure.filesanywhere.com/v.a...8C%5B%9C%A4vsn
You can try it out like this:
VB Code:
Private Sub Form_Load()
Dim retrieve As String
ShellCommand "help", retrieve$, vbHide, 30, vbNull, vbNullString, vbNullString
MsgBox retrieve$
End Sub
or
VB Code:
Private Sub Form_Load()
Dim retrieve As String
ShellCommand "ping localhost", retrieve$, vbHide, 30, vbNull, vbNullString, vbNullString
MsgBox retrieve$
End Sub
-
Jul 30th, 2006, 12:26 AM
#3
Thread Starter
Fanatic Member
Re: sending commands
thanks for the repy does this actually send the command to the open window?
-
Jul 30th, 2006, 12:59 AM
#4
Re: sending commands
Maybe you find something useful in this thread:
http://www.vbforums.com/showthread.php?t=352381
-
Jul 30th, 2006, 01:12 AM
#5
Thread Starter
Fanatic Member
Re: sending commands
lol i've looked at that thread a few time but i think the problem is because when i run the command instad of being a normal command shell it show its from the svchost.exe :s i think that may be it
i explain what i mean a bit better in This Thread
Last edited by dark_shadow; Jul 30th, 2006 at 06:31 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|