azura
azura

Reputation:

use batch file to call another batch file from different comp

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?

Upvotes: 2

Views: 7079

Answers (2)

Darian Miller
Darian Miller

Reputation: 8088

Why not use UNC naming? As in

ThisComputer.bat

   @echo on
    dir *.whatever
    call \\ServerName\C$\YourFolder\OtherComputer.bat

Upvotes: 3

Rob Walker
Rob Walker

Reputation: 47482

You can do this using psexec from Sysinternals/Microsoft.

The computer name can be specified either by name (assuming name resolution works on the network) or IP address.

Upvotes: 3

Related Questions