I have bat (file.bat
) file with the following lines:
echo "Upgrading..."
cp %1/global/a-* %2/global/
I run in CMD the following:
bash file.bat /opt/ad-kf041f /srv/
As I understand, it should put the parameters instead of the %num
, but it doesn't and I get:
cp: cannot stat `%1/global/a-*': No such file or directory
As you can see, I try the suggestion of this question, but it still gives me the same error.
I also try:
set arg1=%1
echo %arg1%
and it prints: %arg1%
Where am I wrong?