Jeff Verdegan wrote:
Fanhua Zeng wrote:However, in my case, I was trying to save a file, I have to specify the ‘Start in (optional)’ in the task scheduler so that the task scheduler knows where to store the file.
It's not the task scheduler. It's so that the JVM's "current directory" is the one you want it to be.
Alternatively, rather than specifying "start in", you could use a full path to the file, rather than a relative one. You could either hardcode that path (not generally a good idea) or provide it as an argument to the command you set up in Task Scheduler. I would prefer this over the "Start In" option because Java programs generally don't need to know or care what the JVM's current directory is.
ramya Lakshmanan wrote:I have a similar problem but in windows server 2003..
I would like to schedule a jar file to run which uses IO.
Can someone help?