I have a executable file VSTO.exe & a try.bat file in one folder. I want to get the folder path of the bat file & concat that path with VSTO.exe.
I have this script in my try.bat.
"%~fp0\VSTO.exe" /q
but it creates path: "G:\test\try.bat\VSTO.exe" . I want to get a path "G:\test\VSTO.exe"
can anyone tell me how do i do that?