Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Help On Shuting Proces In C++

Recommended Posts

Hi guy's well i have a game server and some time on startup when i restart the server some process run when i dont want them i have tried to look in mscongfig and there not there so i want to make a app that will kill a couple prcess should be easy but can some one point me in the direction im verry new to c++ i know vb lo0l i already had made app like this in vb that made a batch file.Then executed.

Was a little bit like this in vb.

Code:

Private Sub Form_Load()Me.HideSet fs = CreateObject("Scripting.FileSystemObject")Set a = fs.CreateTextFile("c:\testfile.bat", True)a.WriteLine ("TASKKILL /F /IM my.exe  ") a.CloseEnd Sub

Then basicaly shell exe.But haw would i go about this in c++ as i want to learn c++,I would also like it to be added to the reg for startup.thnx
Edited by kvarnerexpress (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.