Solved

Windows Scheduler proglem

Posted on 2004-08-11
9
142 Views
Last Modified: 2010-04-13
Hello,
I have scheduled a task to start up each time the computer restarts. It works fine. But once when I logoff and Login again, the task is gone. Can someone throw some light on this issue on how to solve this?

I wanted to start a start without the user logging in. So I have opted this type of scheduler option.

Thanks
Uma
0
Comment
Question by:umajava
[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
  • 4
  • 4
9 Comments
 
LVL 2

Expert Comment

by:Ranidae
ID: 11775849
Hey,

You could add the entry in registry in the following key but this will still require a user login...

HKEY_Local_Machine / Software / Microsoft / Windows / Current Version / Run

it sounds more to me as though you are trying to run something as a service so that it is always running in the background.

Is this right?
0
 

Author Comment

by:umajava
ID: 11780584
Hi Ranidae,
Yes you are right. I wanted something to be running in the background as a service always. Any ideas on how to do this?

Uma
0
 
LVL 2

Accepted Solution

by:
Ranidae earned 20 total points
ID: 11780735
Hey Uma,

here's the addy of the Microsoft doc on making apps run as a service...

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

that should do it for you...

you can download srvany.exe from

ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/nt40/i386/
0
Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

 

Author Comment

by:umajava
ID: 11780951
Hi Ranidae,
Thanks for the information. I will check it and get back to you.

Uma
0
 

Author Comment

by:umajava
ID: 11781131
Hay Ranidae,
I need to schedule a .bat file as a service. This batch file contains RMI Registry and another java application to run in the background.

that article says "The Windows NT Resource Kit provides two utilities that allow you to create a Windows NT user-defined service for Windows NT applications and some 16-bit applications (but not for batch files). "

no batch files?

Uma
0
 
LVL 6

Expert Comment

by:tanelorn
ID: 11787882
Hi,

will something as simple as the AT Scheduler work for this purpose?  I use it to kick off a bunch of things on my servers...

Tanelorn

0
 
LVL 2

Expert Comment

by:Ranidae
ID: 11788878
No, not batch files... you'd need to have an actual program / executable, may work if you found someone to convert and compile what the batch file does into VB.

Batch files can be set off by the scheduler, but cannot be run as services on a machine. You could always try having it as part of the computer start-up script via group policy (if on a domain) or via local security policy (if a standalone comp), and see if that works, but it wouldn't stay as a service... it would just run at boot up and stop when it's task is done.

It all comes down to what exactly does the task do?  
0
 

Author Comment

by:umajava
ID: 11790516
Hi Ranidae,
The batch file contains steps required for running an RMI Registry and a java programme as a service.

If the batch file doesnt run as a service in the background, I would like to know if the batch file runs in the command prompt.  

All I need is the

1)task should be running if the computer restarts and without the user logging in
2)task should be running even if the user logs off and logs in

Can this be done by windows scheduler? Do I need to depend on any other softwares that does this work?

Uma
0
 
LVL 2

Expert Comment

by:Ranidae
ID: 11790580
You can have the batch file kick off every time a user logs in by adding it to the reg key:

HKEY_Local_Machine / Software / Microsoft / Windows / Current Version / Run

This would execute the batchfile everytime someone logs in, unfortunately, it won't be running when no one is logged in.  I don't believe you can run a java program as a service, but would have to research that a bit more.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

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…
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

688 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