cmd - How can I send a .bat file command to another IP address? -


for particular task i'm doing trying run .bat file computer, want command execute on computer. example have .bat file writes ipconfig command text file. code said file looks this:

@echo off rem name: ipconfig.bat ipconfig /all > a.txt @pause 

now when question have comes play; want run .bat file on computer in network. have written following .bat file attempt this:

@echo off rem name: sendipconfig.bat rem user variable represents tried enter i.p address laptop. set /p n=user: call ipconfig.bat > %user% @pause 

i have tried making file using | instead of > when try preform call statement.

you can't run on different computer, there has utility on remote machine runs server. listens incoming connections, runs whatever needs executed, , returns results. server should secure , authenticated (just imagine happen if run arbitrary scripts on machine knowing ip address).

on linux, done using ssh. windows, need psexec

"lets execute processes on other systems, complete full interactivity console applications, without having manually install client software"


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -