我有一个a.bat
有效地看起来像这样的批处理文件:
call some.bat
java -cp "saxon9he.jar" net.sf.saxon.Transform abc.xml des.xsl > des.xml
call subfolder\other.bat
而other.bat
insubfolder
实际上看起来像这样:
call yet_another_batch.bat
java -cp "../saxon9he.jar" net.sf.saxon.Transform any.xml try.xsl > try.xml
java -cp "../saxon9he.jar" net.sf.saxon.Transform ../some.xml test.xsl
因此,在第一个文件(a.bat
)中,我在同一文件夹中调用另一个批处理文件,并在同一文件夹中调用一些xsl脚本,这些脚本将xml文件写入同一文件夹。在第一个批处理脚本(a.bat
)中,我想调用subfolder\other.bat
。但是,当我这样做时,它无法调用yet_another_batch.bat
insubfolder
以及xsl脚本subfolder
,也找不到saxon9he.jar。
正确的方法是什么?我是否必须将文件夹名称添加到引用的所有文件中subfolder\other.bat
?似乎有点麻烦。我在Windows 7上,如果一切有变。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句