1
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.
Thanks. Actually there was no problem and I thought that solution should be something similar to include ('.') operator in bash to prevent setpath.bat for getting stuck, but it was simply a shortcut that used `cmd /k' and I simply removed that part. The only issue remains is the hidcon part. – Pavel P – 2012-07-26T02:34:58.617