lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: convert-ly problem


From: Ben
Subject: Re: convert-ly problem
Date: Thu, 19 Dec 2019 07:46:56 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1

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
)


================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]