Need help with IRToWav

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Post by Capn Trips »

Calling from IR works.

Drag & drop does not.

In short - the change made no difference.
mtakahar
Expert
Posts: 281
Joined: Sun Aug 03, 2003 2:46 pm

Post by mtakahar »

Ah, ok, IRToWav.bat changes the current directory, so "." won't work. Even if not, Windows would change it where it is specified in the property.

Try this: save the following content as setup.bat, put it in the same directory as IRToWav, then double click on it once. It'll create the .bat files with the classpath embedded.

Code: Select all

echo @echo off >IR2W.bat
echo java -classpath "%CD%" IRToWav %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9 >>IR2W.bat
echo @echo off >IRToWav.bat
echo cd /d %userprofile%\Desktop >>IRToWav.bat
echo echo Building sound file, wait.... >>IRToWav.bat
echo java -classpath "%CD%" IRToWav %%1 >>IRToWav.bat
echo echo Prepare the remote for download: >>IRToWav.bat
echo echo Click on the play button on your audio player when you are ready. >>IRToWav.bat
echo pause >>IRToWav.bat
echo start Upgrade.Wav >>IRToWav.bat
This may not work on Windows 98/Me. If that's the case, manually edit the batch files and specify the classpath with full directory name surrounded by double quotes.

Hal
Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Post by Capn Trips »

"...and they were forced to eat their minstrels. :? :twisted:
AND THERE WAS GREAT REJOICING! ('yay')" :D :lol:

That did it. :D Thank you greatly.

(I would next humbly suggest updating the IRtoWAV.zip file, and uploading it somewhere over here, rather than only over at Yahoo, where it currently resides.)
Last edited by Capn Trips on Wed Aug 10, 2005 1:26 am, edited 1 time in total.
mtakahar
Expert
Posts: 281
Joined: Sun Aug 03, 2003 2:46 pm

Post by mtakahar »

I agree. Let's hope Alain finds this thread.
I can copy the file over here with this setup included, but it'll make it harder for Alain to update it later.

Hal
The Robman
Site Owner
Posts: 21890
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

I clued Alain into this thread yesterday, but he's in middle of moving so he doesn't have much computer access right now.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Post by Capn Trips »

Well, as a stopgap, I uploaded the zip with the setup.bat added HERE, and will be happy to remove it if/when Alain has the time/inclination to upload the "official" version.
aberguerand
Advanced Member
Posts: 259
Joined: Sun Aug 10, 2003 11:55 pm
Location: Lausanne, VD, Switzerland

Post by aberguerand »

Hello all,

sorry for the late answer, as Rob mentioned, I had no real Internet access during the last days.

Thanks to Hal for providing an elegant solution to the nasty Java classpath issue. I will integrate Hal's setup batch in the "official" version and amend the instructions accordingly, giving credits to whom they are dued.

As a side note, I did not know that IR was actually calling IRToWav, I thought the Java code had been ported and integrated in IR :| . Anyway, I will also mention it in the instructions.

Alain
Post Reply