Is it possible to use batch file (for XP) to call another batch file from different computer? if yes, how identify the target computer? Is it by IP comp ID?
是否可以使用批处理文件(对于XP)从不同的计算机调用另一个批处理文件?如果是,如何识别目标计算机?是IP comp ID吗?
2 个解决方案
#1
3
You can do this using psexec from Sysinternals/Microsoft.
您可以使用Sysinternals / Microsoft的psexec执行此操作。
The computer name can be specified either by name (assuming name resolution works on the network) or IP address.
可以通过名称(假设名称解析在网络上工作)或IP地址指定计算机名称。
#2
3
Why not use UNC naming? As in
为什么不使用UNC命名?如在
ThisComputer.bat
@echo on
dir *.whatever
call \\ServerName\C$\YourFolder\OtherComputer.bat
#1
3
You can do this using psexec from Sysinternals/Microsoft.
您可以使用Sysinternals / Microsoft的psexec执行此操作。
The computer name can be specified either by name (assuming name resolution works on the network) or IP address.
可以通过名称(假设名称解析在网络上工作)或IP地址指定计算机名称。
#2
3
Why not use UNC naming? As in
为什么不使用UNC命名?如在
ThisComputer.bat
@echo on
dir *.whatever
call \\ServerName\C$\YourFolder\OtherComputer.bat