Answer the question
In order to leave comments, you need to log in
How to run a batch file on a remote machine on the same network?
Hello.
there is a machine 192.168.1.67 that has a backup folder shared over the network in which I made a batch file 1C_backup.bat inside which is the following command
"C:\Program Files (x86)\WinRAR\WinRAR.exe" a -r -agYYYY-mm-dd_hh -mm-ss -u -rr8 -y D:\backup\backup-.rar D:\1C_BASES\safonova\*.*
how to run this batch file from another machine?
I make a batch file on the second machine with the following command
psexec \\192.168.1.67 "D:\backup\1C_backup.bat"
but it doesn't work like that.
Tell me, what should be the command to run a batch file on a remote machine? Or you can immediately make one batch file that will run the desired task on the remote machine, then what command should it be?
Answer the question
In order to leave comments, you need to log in
Powershell and its remote sessions, PSExec tools, LiteManager if you like. It has a remote cmd, a file launcher, and more.
Can be implemented in GPO as Logon script
And there is also a Windows scheduler, where you can configure the autorun of the batch file
there is one more question. With this command in the batch file, I send a copy of the archive to another computer on the network
copy H:\1c_backup\*.rar \\192.168.1.67\backup\
now all archives (*.rar) that are in the 1c_backup directory are sent, how to assemble the command to sent one last created archive?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question