Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

vb6 sending commands to dos window


ghost's Avatar
0 0

hey all i'm working on taking this Glitch to get Get SYSTEM rights and make an autmated verson of it in vb 6 i can get it to do everything except for sending the "explorer.exe" to the command windows any ideas on how to do this ?


ghost's Avatar
0 0

It' a wild and kind of crude guess but maybe if you used sendkeys "explorer.exe"


ghost's Avatar
0 0

well wouldnt i have to get the cmd prompt window 's class first?


ghost's Avatar
0 0

good point:p


ghost's Avatar
0 0

lol well you know any good sites or tuts on how to do that? lol i'll be this would be so much easier in c++


ghost's Avatar
0 0

check around on planetsourcecode.com


ghost's Avatar
0 0

check around on planetsourcecode.com


ghost's Avatar
0 0

dark_shadow wrote: well wouldnt i have to get the cmd prompt window 's class first?

I know that you can reference a window by its title in VBScript, so I figure it's probably in VB6, too. You can also use partial window titles to reference a single instance of a running program, if I recall right.

If you're trying to send explorer.exe to an already-opened Command Prompt, then it seems like SendKeys would be fine. If you're opening a new command prompt to run explorer.exe, then just use:

"cmd.exe /c explorer.exe"

…as the command in your code. Wish I could offer more help, but I don't know the nature of the "glitch" you're trying to automate. Hope that helps.


ghost's Avatar
0 0

idk if this would work but try

system("cmd.exe"); system("explorer.exe");


ghost's Avatar
0 0

private sub form_load() shell("commands here" ) end sub

commands here means that's where you input the stuff for creating an account…try that…

else,contact me if you you wish…

peace.