Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Launching .bat script with multiple options on Post Generation

0 votes

Hey all, 

I was wondering if anyone has ever tried to launch a .bat script in the post generation steps, which displays on screen in a cmd window, rather than in the in-built 'Soundbank progress' window log.  

The pipeline I'm trying to achieve right now is; 

  1. Generate all soundbanks
  2. When finished, launch a .bat script which I've created.  Within that script I ask the user to input a choice from 1 - 5 based off specifics with our pipeline.  Depending on their choice, it then goes off and does a variety of commands all over the shop.  A few seconds later, a ton of automated commands are finished, and we're all good and happy.  
Unfortunately, when trying to run the .bat from the post-generation steps in Wwise, the soundbank generator just hangs at the global closing step where it loads the script as it's obviously waiting for a user selection to made. 
 
This wouldn't be an issue if I could actually see the cmd window somewhere, but it appears very much that Wwise keeps this hidden from the user.  Hence the inevitable hang.  
 
So, is there any way of actually launching the cmd window, separately from Wwise?
 
Arguably I can indeed just run the .bat file myself manually when finished, but this is going to be used by multiple users and I really want to get everything into one slick workflow.  
 
Any thoughts appreciated! 
 
Many thanks,
Andy Grier
 
asked May 2, 2016 in General Discussion by Andy G. (100 points)

1 Answer

0 votes
try copy bat's txt content to wwise,and replace a command with it's samenamed exe. like this:

xcopy.exe "$(HeaderFileFullFilePath)" "$(HeaderFilePath)\..\..\..\..\GeneratedSoundBanks\"  /Y /E

----------

you can also put your command.exe into C:\PROGRAM~1\AK\Wwise\Plugins\
answered Jan 13, 2023 by 田田 (150 points)
...