Solved

about running program in the background after log off

Posted on 2004-03-23
10
1,013 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
  • 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

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…
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
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…

790 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