PDA

View Full Version : Remote execution using psexec


dalevine
12-17-2009, 08:04 AM
Add an option to set the working directory. Currently the default directory (\windows\system32) is the working directory when the remote program is executed.

On the psexec command line, this uses the -w option.

kinook
12-17-2009, 10:07 AM
VBP does pass the Start In folder to psexec -w for remote execution.

dalevine
12-17-2009, 10:31 AM
That option exists when remotely executing a batch file or an external program, but it does not appear to exist in the VisBuildPro Project command.

Is there any way of accomplishing this from that command?

kinook
12-17-2009, 10:47 AM
You could pass the path in as a parameter and use that in a Set Current Dir at the start of the project being called.
http://www.kinook.com/VisBuildPro/Manual/vbpparameterstab.htm
http://www.kinook.com/VisBuildPro/Manual/setcurdiraction.htm

We'll also consider adding an explicit option for that in the VisBuildPro Project action.

Thanks.

dalevine
12-17-2009, 10:52 AM
I am doing what you suggested about setting the current directory, but it took me quite a while to figure out that was the only way I could do it.

An option for setting the current working directory would be very helpful.

Thanks

kinook
03-11-2010, 09:18 AM
This is implemented in v7.5.
http://www.kinook.com/Forum/showthread.php?threadid=4415
http://www.kinook.com/VisBuildPro/Manual/vbpprojecttab.htm

dalevine
03-11-2010, 11:37 AM
That's great, thanks