﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-thoth-文章分类-other</title><link>http://www.blogjava.net/thoth/category/30417.html</link><description /><language>zh-cn</language><lastBuildDate>Wed, 26 Mar 2008 16:39:41 GMT</lastBuildDate><pubDate>Wed, 26 Mar 2008 16:39:41 GMT</pubDate><ttl>60</ttl><item><title>windows2003下进行schedule task时候的奇怪问题</title><link>http://www.blogjava.net/thoth/articles/188898.html</link><dc:creator>thoth</dc:creator><author>thoth</author><pubDate>Wed, 26 Mar 2008 15:55:00 GMT</pubDate><guid>http://www.blogjava.net/thoth/articles/188898.html</guid><wfw:comment>http://www.blogjava.net/thoth/comments/188898.html</wfw:comment><comments>http://www.blogjava.net/thoth/articles/188898.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/thoth/comments/commentRss/188898.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/thoth/services/trackbacks/188898.html</trackback:ping><description><![CDATA[写了一个简单的批处理程序放到scheduled task中运行，怎么也运行不起来，最后把错误输出到文件里才发现<br />
scheduled task里面调用path的时候不支持%JAVA_HOME%的这种写法，解析出来的还是%JAVA_HOME%而不是jdk的实际路径。将environment里面的path改成绝对路径问题就解决了。<br />
btw:解决问题的过程中发现bat文件中重定向err的方法：XXX.exe 1&gt;XXX.log 2&gt;XXX.err，1代表标准输出，2代表错误输出<br />
<br />
 <img src ="http://www.blogjava.net/thoth/aggbug/188898.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/thoth/" target="_blank">thoth</a> 2008-03-26 23:55 <a href="http://www.blogjava.net/thoth/articles/188898.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>