?
Solved

about running program in the background after log off

Posted on 2004-03-23
10
Medium Priority
?
1,017 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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…
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month10 days, 19 hours left to enroll

770 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