i am trying to run a btach file using software dist' that batch file is actually trying to kill certain service , delete an exe file , copy from server share another exe file and at the end i use NET START to start the new exe file as service ...
the prblem is that everything is working fine untill that phaze that the btach should run at the users workstation...
i get this :
i heard that i cant use .bat in software deploy instead in need to use .cmd is that correct?
or that i cant use copy command in the batch file from \\servershare\
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
hey guys, i got a little issue
i am trying to run a btach file using software dist' that batch file is actually trying to kill certain service , delete an exe file , copy from server share another exe file and at the end i use NET START to start the new exe file as service ...
the prblem is that everything is working fine untill that phaze that the btach should run at the users workstation...
i get this :
i heard that i cant use .bat in software deploy instead in need to use .cmd is that correct?
or that i cant use copy command in the batch file from \\servershare\
anyway this is the batch file:
-------------------------------------------------------------------------------
taskkill /F /IM EXAMPLE.exe
DEL c:\windows\system32\EXAMPLE.exe
copy \\servershare\\dist\EXAMPLE.exe c:\windows\system32\
net start EXAMPLE
echo finish %computername% %date% %time% >> \\servershare\\dist\install.log
--------------------------------------------------------------------------------
am i doing something wrong?
please help
thanks!
Share this post
Link to post
Share on other sites