I have a program written in vb.net. After the build, I want to run an interactive batch file that remotely runs the psexec command. How can i do this? this is my post:
call "$(ProjectDir)ExecOnGw.bat"
And this is my package, which, if it runs on a regular command line, runs fine.
c:\Sysinternal\psexec.exe \\gateway "C:\Remotepath\mybatch.bat" -u mydomain\myuser -p ****** pause
This batch calls another batch on the remote machine that does something, and then if I want to exit, I have to press q and Enter. On a normal command line it works fine. But in the event after building Visual Studio, it is omitted. Help me!
source share