command line tool (nwc-conv) in 2.1 2010-03-15 12:12 am I just downloaded and installed nwc2.1. When I try the command line tool "nwc-conv.exe", it seems that it must be executed from the same directory as the exe-file. If not I keep getting the following error:Error: The input format Files is not recognized.WHen correct paths have been provided, the command line tool simply starts the gui-version of the tool, but no file is generated. DId I do something wrong? Quote Selected
Re: command line tool (nwc-conv) in 2.1 Reply #1 – 2010-03-15 06:45 am I have to ask, did you provide the correct parameters on the command line?nwc-conv -hwill display:Quotenwc-conv: version 2.1This program is a front end command to the file convert optionsavailable in the main NoteWorthy Composer program. It must belocated in the same folder as the main NWC program.Usage: nwc-conv IN_FMT OUT_FMT [-h|-v|-0|-1]IN_FMT This specifies the input file or format that will be used. This can be the name of a *.nwc or *.nwctxt file, or if STDIN is used, it should indicate "NWC" or "NWCTXT".OUT_FMT This specifies the output file or format that will be used. The format can be one of NWC, NWCTXT, MID, or INFO, but may not be the same as the IN_FMT. This can be the name of the intended output file, or just the the format name if STDOUT is used.-h Shows this help message-v Shows the program name and version-0 Use type 0 when converting to MIDI-1 Use type 1 when converting to MIDIExample: nwc-conv NWCTXT "out\test.mid" -1 This creates a Type 1 MIDI file using the NWCTXT text provided on standard input (STDIN)Example: nwc-conv "in\test.nwc" NWCTXT > "out\test.nwctxt" This converts the test.nwc file into NWCTXT which is sent via standard output (STDOUT) to a test.nwctxt file Quote Selected
Re: command line tool (nwc-conv) in 2.1 Reply #2 – 2010-03-15 07:29 am Quote from: jonashogstrom – 2010-03-15 12:12 amWhen I try the command line tool "nwc-conv.exe", it seems that it must be executed from the same directory as the exe-file. I agree. Using WinXP's command prompt, if I change to the samples folder and use:QuoteC:\Program Files\Noteworthy Software\NoteWorthy Composer 2\SAMPLES>..\nwc-conv mozart.nwc NWCTXTthe GUI appears with an "unable to convert error"If I use subst to map g: to the program folder,QuoteC:\Program Files\Noteworthy Software\NoteWorthy Composer 2\SAMPLES>g:nwc-conv mozart.nwc nwctxtworks as expected.I hope this can be corrected. Quote Selected
Re: command line tool (nwc-conv) in 2.1 Reply #3 – 2010-03-15 08:05 pm Using the trick with subst I could get it working, thanks. Quote Selected
Re: command line tool (nwc-conv) in 2.1 Reply #4 – 2010-03-16 09:50 am Looking into this... Quote Selected
Re: command line tool (nwc-conv) in 2.1 Reply #5 – 2010-04-07 02:35 pm A new release of nwc-conv.exe will be available shortly. Quote Selected
Re: command line tool (nwc-conv) in 2.1 Reply #6 – 2010-04-07 04:43 pm nwc-conv Version 2.1a can currently be found in the User Tools area in this forum. Licensed users of NWC 2.1 can install this tool into any folder and use it to automate *.nwc file conversions. It will automatically find your installed copy of NWC 2.1 and use it for file conversions. Quote Selected
Re: command line tool (nwc-conv) in 2.1 Reply #7 – 2010-04-07 05:00 pm Seems to work, but an extra 104k of code just to find nwc2.exe? Quote Selected
Re: command line tool (nwc-conv) in 2.1 Reply #8 – 2010-04-07 06:25 pm Quote from: Rick G. – 2010-04-07 05:00 pmSeems to work, but an extra 104k of code just to find nwc2.exe?It is actually from including registry and command line handlers. Quote Selected
Re: command line tool (nwc-conv) in 2.1 Reply #9 – 2010-04-08 09:35 am After removing some dependencies, the nwc-conv executable is back down under 80k. We will release that shortly. Quote Selected