batch file - relative path to .Exe -
i need create batch file has relative path c# application executable. when run batch file program needs start regardless on pc is. appreciated. kind regards
let's try this. on local machine, create file. need know machine name program resides , provide first parameter. if sharename different c$, needs part of parameter or parameter.
=== runit.bat
@echo off setlocal set exitcode=0 pushd \\%1\c$\theprogdir dir rem replace starting c# program call thisistheprog.bat set exitcode=%errorlevel% popd exit /b %exitcode%
Comments
Post a Comment