vb6 sending commands to dos window
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 ?
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.