×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to make a .exe running in background

How to make a .exe running in background

How to make a .exe running in background

(OP)
I want a .exe (say for example dummy.exe) run in the background. It should apprear in process tab of Task Manager. It should basically do nothing...just run in the background...may be running an infinite loop until I close the program....

Does anyone know how to do this in Win XP (service pack 2).

Thanks in advance
Mallik

RE: How to make a .exe running in background

Does it need to run as the current logged-on user, or should it run even if a user isn't logged on?

Chip H.

____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first

RE: How to make a .exe running in background

(OP)
Hi Chip

It should run as the current logged-on user. There is no need to run even if a user isn't logged on.

 

Thanks in advance
Mallik

RE: How to make a .exe running in background

(OP)
I had created the file dummy.exe with the following in it.
    Process process = new Process();
    process.StartInfo.UseShellExecute = false;
    process.StartInfo.RedirectStandardOutput = true;
    process.StartInfo.RedirectStandardError = true;
    process.StartInfo.CreateNoWindow = true;
    process.StartInfo.FileName = dummy.exe;
    process.StartInfo.WorkingDirectory = C:\Am;
    process.Start();

When I double click on dummy.exe it gives the follwoing error message.

C:\Am\dummy.exe
The NTVDM CPU has encountered an illegal instruction.
CS:0de4 IP:0107 OP:63 65 73 73 20 Choose 'Close' to terminate the application.

Is there anything else I need to do ?

Thanks in advance
Mallik

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close