Solved

about running program in the background after log off

Posted on 2004-03-23
10
1,015 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 75 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

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…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

734 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