Visual Basic simple question

slayer9019

[H]ard|Gawd
Joined
Apr 2, 2010
Messages
1,599
I am writing a program to launch other programs

I need to launch VNC and enter in information using sendkeys or somthing similar. \

How can you open a .wsf from a VB form?
 
have you looked at the Process.Start method in the System.Diagnotics namespace?

With that you can launch any file, with any switches under any permissions.
 
have you looked at the Process.Start method in the System.Diagnotics namespace?

With that you can launch any file, with any switches under any permissions.

Yea already got that done using Shell()

i ended up using Send.Key. but i had to use a thread interrupt because it VNC wasnt loading fast enough. The program came out very nice and I actually had some time to add some bling to it
 
Would this also be useful for executing a DiskPart /s command from within VB.Net?

Or would it be better to code the various DiskPart steps directly in VB.

I'm working on a project that will do this as part of it's job. I'm not really at that point yet but I saw this post and thought it was timely...

have you looked at the Process.Start method in the System.Diagnotics namespace?

With that you can launch any file, with any switches under any permissions.
 
Yes Larry, It will do that fine and you can specify to run diskPart with admin credentials.

Just go careful with it when testing!
 
Can Diskpart's console output be capture/re-directed into the VB program, or will I have to live with CMD Prompt boxes popping up?
 
Back
Top