• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

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