Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How to run a batch file on a computer from network?

<p>i want to run <strong>test.bat</strong> located on <strong>D Drive </strong>of "A"  computer or say on the computer having ip192.168.1.3 from "computer B" having ip192.168.1.10 in a LAN Network</p> <p> </p>

user-image
Question ajoutée par Utilisateur supprimé
Date de publication: 2015/01/02
Utilisateur supprimé
par Utilisateur supprimé

I am assuming you have full access to both computers, as you haven't stated otherwise. You could use a UNC path using the default share, such as \\\\192.168.1.3\\D$\\test.bat or you could map a drive to that UNC path.

You would require access to that UNC path. This "should" work, depending on what test.bat does....

oumarou salihou
par oumarou salihou , sale manager , ibs

i assume that your D drive is shared, and u have full access on both computers

u can just open explorer and go to : \\\\192.168.1.3\\D , locate the file test.bat and execute it

to avoid issue i would recommend u to copy the file on the computer where u want to execute it.

Ahmad Yassein
par Ahmad Yassein , Infrastructure Network Manager , Ministry of International Cooperation (MIC)

Why exactly do you even want to do that? .. Just copy the file to the computer in question and run it. It's the same concept as accessing files and folders from the network. UNC or Windows explorer are your friends. You should share the D: drive if you are going to use the latter since hidden shares aren't visible in explorer. \\\\..1.3\\D$ will do what you need. However, I assume you meant  how to make that batch file map a drive or does some any other action on the network.

RAGHU P R
par RAGHU P R , windows administrator , spectrum softtech solutions pvt ltd

you should make a telnet connection through port 21 to the system. after that go to the location of the bat file and just execute it. thats all.

More Questions Like This