Computing.Net > Forums > Programming > Create an Executable (patch)

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Create an Executable (patch)

Reply to Message Icon

Name: Badmanrc
Date: June 27, 2006 at 20:10:51 Pacific
OS: xp
CPU/Ram: ---
Product: ---
Comment:

I want to create an executable file (.exe) to do a certain job. I want to make a file that will allow me to:
1.)End a Process in the TaskManager
2.) Delete a file
3.) Delete a registry key

Can someone tell me how to do this? I have no experiance at all with programming. If you think that it will be hard seeing as i have no experiance then just tell me and i wont bother trying to do it. But thanks for the help anyway.

Ryan



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: June 28, 2006 at 02:06:13 Pacific
Reply:

As you have no programming experience is absolutely impossible you can do the job almost in reasonable time. Why otherwise so many people spend so much time attending programming classes?

So stated, the way to achieve what you wish is not to code an executable (.exe), but to set up a script (.bat or .vbs) supported by some third party utility.

What above explained is another proof of your poor knowledge of the issue. Maybe some guy may do the job for you if you give more detailed info.


0

Response Number 2
Name: Shr0Om
Date: June 28, 2006 at 04:48:26 Pacific
Reply:

You are asking for 3 different functions here. Should all be executed in one, or seperately??
Anyway, what you ask for can be done with a batch file. All you need to do is to paste the commands into notepad and save the file as a ".bat". Since you dont provide much information on how this script should work i cant provide you with so much info, but something to get you started.. Im not steady on how to edit registry with a batch, but it can be done.

To delete a file:
del filename.xxx

To kill a process
taskkill /IM iexplorer.exe

If you want the script to ask you what process to kill or file to delete, you can write:

set /p file=File to delete?:
del "%file%"

Remember you need to write the full path of where the file is located

set /p killProcess=Process to kill?:
taskkill /IM %killProcess%


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Create an Executable (patch)

Creation of an executable for boot www.computing.net/answers/programming/creation-of-an-executable-for-boot/4181.html

Create Java Executable .jar file? www.computing.net/answers/programming/create-java-executable-jar-file/11740.html

calling an executable from c++ prog www.computing.net/answers/programming/calling-an-executable-from-c-prog/5296.html