I need to call zipjs.bat file which takes path as argument. I am calling the .bat file trough another .bat file called start.bat. Both files aren't at the same place in the file system, they reside in different folders.
zipjs.bat reside in \batch
and the start.bat resides in \odt
The file that is to be passed as an argument to zipjs.bat resides in the same folder as start.bat.
This way(using absolute path for -source
) everything works fine:
call ..\batch\zipjs.bat unzip -source C:\Users\rmrd001\git\xslt-framework\Product\dita\transformations\paragraphs\odt\source.odt.zip -destination .\MyDir -keep yes -force no
pause
Above the -source
takes absolute path. But when I change the absolute path with relative one, like this: -source .\source.odt.zip
it doesn't work. I tried with paths relative to start.bat - .\source.odt.zip
and relative to zipjs.bat - ..\odt\source.odt.zip
without success though.