Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

about running program in the background after log off

Posted on 2004-03-23
10
Medium Priority
?
1,019 Views
Last Modified: 2010-04-13
I want to know is there any method can let me run a program after I log off windows 2000? That means I start to run a program, say bittorrent, then I log off, but I still want this program to keep running in the background. Is it possible for Windows 2000? I know we can do it on Unix. Thanks
0
Comment
Question by:shy513
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 16

Accepted Solution

by:
JammyPak earned 300 total points
ID: 10658271
if the application can run as a service, then it can run with no user logged in.

here's two options:

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q137/8/90.asp&NoWebContent=1

http://www.firedaemon.com/
0
 

Author Comment

by:shy513
ID: 10668576
thx for answering. I can run a service whenever I log on or off now. However, the program itself is running but doing nothing...that means,say again, the bittorrent program is running when I check the task manager, but it does nothing, for example download, upload file, etc.
Because I want to use this feature to run a auto-update for virus definition when I leave the office, I do need it is actual running but not just eating up my memory. Thanks again
0
 
LVL 16

Expert Comment

by:JammyPak
ID: 10668967
I'm not too sure about this....the program *is* running...it's just running as a background service rather than a foreground application. How is an auto-update triggered for this program? Is it scheduled, or does it require human interaction? Obviously if you need to click a button to do an update, then that's not possible.

if you need to do something like this, you could try automating the keystrokes using a tool like Auto-It...then you could schedule the Auto-It script to run using 'at'.

http://www.hiddensoft.com/AutoIt/
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Author Comment

by:shy513
ID: 10669426
the auto update program doesnt need any human interaction. It is a batch file. After running this file, it will download the definition from symantec itself. What I want is to run it when I leave office, but my company's policy doesnt let me lock my computer when I am not in the office. Any idea I can actually run the program? Because I used bittorrent as a testing, the bittorrent.exe is running, but no download is actually occurred. Thanks
0
 
LVL 16

Expert Comment

by:JammyPak
ID: 10669476
you could schedule the batch file to run at night.

try this from command line:

at  3:00AM /EVERY:Monday,Tuesday,Wednesday,Thursday,Friday "c:\batchfile.bat"

this doesn't require a user to be logged in...it runs as the localsystem account
0
 

Author Comment

by:shy513
ID: 10670154
where to put this command line? in the registry? or in the command prompt?
0
 

Author Comment

by:shy513
ID: 10670277
I find that this command line is similar to the windows schedule. Any different bewteen them? since the task in windows' schedule doesn't work if I log off the computer
0
 

Author Comment

by:shy513
ID: 10670449
I figure it out how to do to meet my requirement. But I really like your link to User-Defined Service. Thanks alot
0
 
LVL 16

Expert Comment

by:JammyPak
ID: 10670478
it is similar...at has been around longer, and it's what I'm more familar with...they both rely on the 'task scheduler' service to be running...but it definitely can work when a user is logged off (I use this command for lots of things here....)
0
 
LVL 16

Expert Comment

by:JammyPak
ID: 10670490
ok, glad it's working for you!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Working from home is a dream for many people who aren’t happy about getting up early, going to the office, and spending long hours at work. There are lots of benefits of remote work for employees.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question