On 12/19/2019 6:55 AM, Peter Gentry wrote:
Having rediscovered the fact that Frescobaldi does not call convert-ly
anymore. I went to the section 2.2 of the usage manual and popped the
following into a windows 10 command prompt (with administrator privs)
C:\Program Files (x86)\LilyPond\usr\bin>forfiles /s /p
"C:\users\peter\Lilypool\Music_Files\Bouffil" /M **.ly /c "cmd /c
convert-ly.py -e @file"
The result was
'convert-ly.py' is not recognized as an internal or external command,
operable program or batch file.
'convert-ly.py' is not recognized as an internal or external command,
operable program or batch file.
'convert-ly.py' is not recognized as an internal or external command,
operable program or batch file.
'convert-ly.py' is not recognized as an internal or external command,
operable program or batch file.
'convert-ly.py' is not recognized as an internal or external command,
Etc etc for each .ly file in the folder
I have cd’d to the Lilypond usr\bin folder so I don’t think the three
“s are needed here, but who knows
Where did I go wrong?
Regards Peter
Hi Peter,
Are you trying to run that code in a batch file or are you wanting to
use a one-liner via CMD? Syntax is different on Windows depending on if
the code is run within a BAT file or run via the command line direct.
I have a .bat file I run sometimes on Windows, maybe this could help you.
===================
@echo off
set LY_HOME=C:\Program Files (x86)\LilyPond\usr
for %%f in (%*) do (
echo Converting %%~nf...
if exist %%~nf.orig (
del %%~nf.orig
)
move %%f %%~nf.orig
"%LY_HOME%\bin\python.exe" "%LY_HOME%\bin\convert-ly.py" %%~nf.orig
> %%f
)
================