chenall/grub4dos

grub4dos-0.4.6a-2021-10-13.7z - error running batch files

Opened this issue · 12 comments

grub4dos-0.4.6a-2021-10-13.7z
image
With this grldr I get error running a batch file
previous versions worked OK

May be caused by removing spaces fix ?

P.S. Please can you include \ext folder with utilities in all future zip files too?

echo 3
cat %sortlist% | call :copyfiles 
echo 4

image
problem traced to this line in batch file which works OK with previous versions

Note that end of line MUST have a space to work
cat %sortlist% | call :copyfiles [SPACE]

I don't think you should remove space from end of command lines
I only asked for you to remove space from filename when passed to animation code - i.e. change animation code only

How to repeat the question

image
image

!BAT
echo -v
echo -n FRED   
echo FRED

Cannot remove spaces from command line

cat %sortlist% | call :copyfiles [SPACE]
What does'|' mean?

example on same page
image

使用2021-08-13版本的grldr测试,同样的问题。我感觉是
cat %sortlist% | call :copyfiles
这句脚本有问题。

!BAT
set sortlist=/test.g4b
cat %sortlist% | call :copyfiles
goto :end

:copyfiles
echo 5678

:end

The code works OK
BUT you must add a space
image
image

See also the echo code above which has spaces at end of line

!BAT
echo -v
echo -n FRED   
echo FRED

image

You must change back the code
Do NOT remove spaces from end of lines