Following Check if a file exists in zip archive, I have a batch file that processes some files in a directory, and I use this line inside it:
call zipjs.bat list -source "C:\myZip.zip" -flat yes|find /i "filename" && (
echo file exists
color
)|| (
echo file does not exist
)
I have zipjs.bat
in the same directory as my batch file:
Desktop->MyBatch.bat
Desktop->zipjs.bat
MyBatch.bat
calls zipjs.bat
and works fine as expected on my machine.
Problem:
I have got an access to a virtual machine to test my code, it is a windows desktop with some software running on it. Nothing fancy. There, I also put myBatch.bat
and zipjs.bat
under the same directory (Desktop). However, whenever I run myBatch
, it prompts out that "zipjs.bat is not a recognized command". It is like myBatch
can't locate zipjs.bat
. What could be the issue?