Results 1 to 6 of 6
  1. #1
    That0n3Guy's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    1,137
    Reputation
    13
    Thanks
    271
    My Mood
    Sleepy

    Better way then System()

    Is there a function better then system to execute console commands?

    I would like to start and stop a service, but it's pretty annoying using the system() command because it tells you everything that's happening and makes my window look messy.
    Quotes Hall of Fame

    Quote Originally Posted by martijno0o0 View Post
    ok, i got visual basic 2008 and i got some expirients but i need c++ to make hacks rigth?
    so i need c++ and my question is!?¿? where i dontload it? and is c++ a own program or a update for vb08?
    [IMG]https://i660.photobucke*****m/albums/uu327/EddieTheWin/duff.png[/IMG]

  2. #2
    Matrix_NEO006's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Posts
    240
    Reputation
    12
    Thanks
    33
    My Mood
    Lonely
    not that i know but system(""); is the shortest and easiest way to do it.

  3. #3
    That0n3Guy's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    1,137
    Reputation
    13
    Thanks
    271
    My Mood
    Sleepy
    Quote Originally Posted by Matrix_NEO006 View Post
    not that i know but system(""); is the shortest and easiest way to do it.
    I'm aware of how to use system, but I don't want everything that's happening popping up on the screen.
    Quotes Hall of Fame

    Quote Originally Posted by martijno0o0 View Post
    ok, i got visual basic 2008 and i got some expirients but i need c++ to make hacks rigth?
    so i need c++ and my question is!?¿? where i dontload it? and is c++ a own program or a update for vb08?
    [IMG]https://i660.photobucke*****m/albums/uu327/EddieTheWin/duff.png[/IMG]

  4. #4
    B1ackAnge1's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    455
    Reputation
    74
    Thanks
    344
    My Mood
    Cynical
    Basically the core of it would be calling these functions..

    OpenSCManager()
    OpenService
    StartService() / StopService() or ControlService() with start/stop params
    CloseServiceHandle()

    Here's a fun sample from MS;
    https://msdn.microsof*****m/en-us/libr...74(VS.85).aspx


    Or you can use WMI (Win32_Service class) but that involves COM which I doubt would make any sense right now
    Last edited by B1ackAnge1; 11-19-2009 at 07:55 PM.

  5. #5
    Matrix_NEO006's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Posts
    240
    Reputation
    12
    Thanks
    33
    My Mood
    Lonely
    there you go thats a good example.

  6. #6
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,204
    My Mood
    Flirty
    you can clear the screen too with system("cls"); if it's getting too messy... just tossin that out.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

Similar Threads

  1. [Tutorial] Learn C++ - The better way
    By ___[.T.]___ in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 26
    Last Post: 12-05-2010, 04:49 AM
  2. [Release] Menu Click [Better Way]
    By NOOBJr in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 25
    Last Post: 12-02-2010, 05:47 PM
  3. is there a better way
    By XFL in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 11
    Last Post: 09-24-2010, 05:24 PM
  4. [Release]Better way to get allways HS
    By Houston in forum Combat Arms Europe Hacks
    Replies: 7
    Last Post: 07-28-2009, 10:37 AM
  5. [tut] better way to make a kssn
    By damanis1 in forum WarRock Korea Hacks
    Replies: 6
    Last Post: 05-20-2007, 11:41 AM

Tags for this Thread