Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. running a process automatically

running a process automatically

Scheduled Pinned Locked Moved Visual Basic
helptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    usmanmir
    wrote on last edited by
    #1

    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

    C D 2 Replies Last reply
    0
    • U 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

      C Offline
      C Offline
      carlos_rocha
      wrote on last edited by
      #2

      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") (...)

      1 Reply Last reply
      0
      • U 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

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups