running a process automatically
-
how to make a process a service in VB. i am seeking help in VB to make my application's exe run without being tirggered just like worms. The payload of my application is Just MessageBox stating "Welcome From Usman".So there are two main issues , 1)How to execute exe without tirggering it 2)Where to place and how so that every time windows starts(not user logs in) , it executes it self and show the message box. I hope that you will help me. Regards UsmanMir
-
how to make a process a service in VB. i am seeking help in VB to make my application's exe run without being tirggered just like worms. The payload of my application is Just MessageBox stating "Welcome From Usman".So there are two main issues , 1)How to execute exe without tirggering it 2)Where to place and how so that every time windows starts(not user logs in) , it executes it self and show the message box. I hope that you will help me. Regards UsmanMir
so...you're gonna make a virus... TERRORIST :D Never say never I think i can help you with the first requisite the second one i only know how to do it manually (put the shortcut in the Startup folder... :P) use the Process class and its Start method:
Dim myProcess As New Process myProcess.Start("myApp.exe") (...)
-
how to make a process a service in VB. i am seeking help in VB to make my application's exe run without being tirggered just like worms. The payload of my application is Just MessageBox stating "Welcome From Usman".So there are two main issues , 1)How to execute exe without tirggering it 2)Where to place and how so that every time windows starts(not user logs in) , it executes it self and show the message box. I hope that you will help me. Regards UsmanMir
A windows service has to be installed. VB6 doesn't come with anything to do that. There are, however, 3rd party utilities that do. I already posted a link for you to follow that contains instructions on how to do it. Next, you have a huge problem that you can't resolve. Since your application is running as a service, it runs under a completely different desktop than the one the user sees. This mean, that unless your service is tagged "Allow interaction with desktop...", the messagebox you put up will never be seen by the user. Now, having solved that little problem, you have a second problem. You said you want to put up a dialog box while no user is logged in. Not going to happen. Since there is no desktop when a user isn't logged in, there's no way to put up a visible message box. On top of that, your VB6 app is not a true service. This means that you don't get the notification messages that the user session is being terminated or started, so you can't tell when someone logs on or off. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome