Set the working folder for the remote process using WMI
I am using this article to start a process on a remote machine using WMI. How can I control the working directory in which the process will start?
(No need to redirect me to psexec, I get an error from it, currently trying to use WMI).
+1
ripper234
source
to share
1 answer
Found the answer here and extrapolated.
A small modification of the code in the article:
inParams ["CurrentDirectory"] = @ "c: \ WorkingDirectory";
+3
ripper234
source
to share