I want to add some shell actions to execute some apps. These apps require some environment set from complex batch files.
That is, my action should call:
c:\xxx\SetPath.bat
c:\yyy\startApp.exe
The problem is that SetPath.bat opends up cmd.exe and sets environment AND stays inside cmd.exe But I need to set that environment and then execute an app. On top of that the app is a gui app, so it would be nice to avoid showing up console when I run the environment batch file (I can use hidcon for that).
The gui app is cygwin shell (mintty) and at login there I also need to add some action :) but it's not a big deal.
I've seen similar stuff done with vbs, but I can't recall where.