megagoth1702 252 Posted December 3, 2014 Hello guys, I want to be able to do this: I need to encode WAV files to WSS. Currently I use Mikero's DeWss GUI to do this one by one, there must be a more efficient way! I did write a batch script once but it is always local to the folder I specify in the script. When I select multiple files and use the "send to menu" to WAVtoWSS it only encodes ONE file, not the many that I selected. I want to have something that: -encodes the files sent to it -looks for wav files in the folder I send it and encodes them into the same folder (usual behaviour for these tools). Unfortunately I have no idea how to write batch scripts, the one I wrote was a hit & miss mostly until suddenly it worked. So yeah, can you guys help me out here? Thanks! Share this post Link to post Share on other sites
megagoth1702 252 Posted December 4, 2014 (edited) Okay, thanks for the help guys... ;) The folks at stackoverflow helped me out. for %%i in (%*) do "PathToYourTools" -parameter -moreParameter %%i Example:for %%i in (%*) do "D:\Spiele\Steam\SteamApps\common\Arma 3 Tools\Audio\WAVToWSS.exe" %%i Awesome. You need a text file, paste the code into it, rename it to "cmd" or "bat". Now create a shortcut to this file. Now, in explorer at the adress bar type in "sendto" and put your shortcut there. Now you have a new entry in the "Send to" menu, which will trigger the bat. Awesome!If I select multiple files, it converts ALL of them. If I select a folder, it converts all the feasible files in the folder. Sweet!EDIT:If you want the files DELETED after they are encoded, use this:for %%i in (%*) do ( echo %%i "D:\Spiele\Steam\SteamApps\common\Arma 3 Tools\Audio\WAVToWSS.exe" %%i DEL %%i ) REM %%i is not valid anymore here Edited February 13, 2016 by megagoth1702 3 Share this post Link to post Share on other sites
chammy 7 Posted February 11, 2016 Now does this help solve the issue converting the wav file back to wss. ? Share this post Link to post Share on other sites
Jackal326 1181 Posted February 11, 2016 I've also successfully managed to adapt this method to work with Image2PAA for batch converting textures. Nice find :) Share this post Link to post Share on other sites
megagoth1702 252 Posted February 12, 2016 I don't use wavToWss anymore, I use Mikero's tools DeWss. 2 Share this post Link to post Share on other sites
inlesco 233 Posted February 13, 2016 Great work on the batch script, man! Been pulling my hair out to find a working solution for this. Thanks a lot! Share this post Link to post Share on other sites