troubleshooting Question

Process is not running inside task scheduler

Avatar of jmanzo20
jmanzo20 asked on
Server SoftwareMicrosoft Legacy OSMicrosoft Applications
4 Comments3 Solutions860 ViewsLast Modified:
I have a batch file which name is "WatchDir.bat". The file is saved in c:\loadbo and it contains the following instruccions:

cd \loadbo
"C:\Program Files\Java\jdk1.7.0\bin\java"  WatchDir c:\loadbo\inFile

The program "WatchDir" is a java program which monitors a folder for new file creation. If a new file is created in c:\loadbo\infile, then a second batch file is executed (c:\loadbo\copyfile.bat)

If the program WatchDir.bat is run in console mode, everything works fine and I can see that the process continues running using taskmgr. The process keeps running because the java code is monitoring new file creation inside c:\loadbo\infile\.

The problem appears when I try to schedule the Watchdir.bat using task scheduler. Nothing happens, the process does not run even when the screen shows that the process is "executing". I have changing the frequency from executing at startup, execute each minute, etc. without success.

What may be happening?

My OS version windows server 2008 R2
JDK 7 for x64
CLASSPATH includes c:\loadbo
PATH includes c:\loadbo and "C:\Program Files\Java\jdk1.7.0\bin\"

Thank you for your help

Jorge Manzo

Process is not running inside task scheduler

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros