I have a little windows batch script that does nothing but prints all its command line arguments (proba.bat)
@echo off
:loop
if "%~1"=="" goto cont
echo %1
shift & goto loop
:cont
I expected that this script would print all .mp4 files if I call it like this:
proba *.mp4
But instead it simply prints *.mp4 literally. This would be so easy on linux, but here I can not get it work. What am I doing wrong?
Thank you
This emulates what you are trying to do:
@echo off
for %%a in ("%~1") do echo "%%a"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With