I am using IExpress as a wrapper for a script file. I have no problem passing arguments from the bat file to the vbs file. Where I am having a problem is determining the path of the exe (created with IExpress) that calls the bat file. Right
now, the AppLaunched command for the exe is:
cmd /c TestName.bat %CD%
However, %CD% returns the temp folder that the exe created, not the path that the exe was run from. I also tried %0, but the exe doesn't recognize it as anything other than text.
cmd /c TestName.bat %0
TestName.bat is (extra parameters included so I don't need to keep modifying it as I try new things):
testname.vbs %0 %1 %2 %3
Testname.vbs is:
Set args = Wscript.Arguments
msgbox args.count
For Each arg In args
msgbox arg
Next