Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Run batch file when network computer is detected

08 Jul 2011   #1

Windows 7 Ultimate x64
Run batch file when network computer is detected

I'm looking for a way to have a batch file run when a network computer is detected.

My laptop is often times inaccessible to my desktop unless I ping it first.
So I've created a batch file to ping the laptop but now I need to find a way to have it run when the laptop is detected on my local network.

Is there a way to do this through a windows event or any way at all?

Any help would be greatly appreciated.

My System SpecsSystem Spec
08 Jul 2011   #2

Windows 7 Ultimate x64 SP1

There are applications that can scan a network for a MAC address, but I don't know if any of them support trigger actions when one is found.

I would instead concentrate on fixing the inaccessibility issue. It sounds like the adapter is turning off when the laptop sleeps or after a period of inactivity. That's pretty easy to fix - check your power settings on the NIC and deselect the power saving option.
My System SpecsSystem Spec
08 Jul 2011   #3

Windows 7 Ultimate x64

Thanks for the reply.

I turned off the power saving feature as you suggested and will post back if the problem persists.
My System SpecsSystem Spec


 Run batch file when network computer is detected

Thread Tools

Similar help and support threads
Thread Forum
Network card not being detected by computer
I have installed a D-Link DWA-566 Wireless PCI express adapter for my desktop, and for a while it worked fine. Suddenly, my wireless internet connection vanished. It appears only this computer is the only computer in my household that is having a problem connecting to the Internet. I checked the...
Network & Sharing
How to copy a file from 1 pc to another pc in network using batch file
Help me make a batch file that copies a file from one computer to another computer in a network... PC1 = Source PC2 = Destination I want to copy a file from PC1's Drive E: to PC2's Drive E:
General Discussion
Run Batch File On Remote Computer Without PsExec
Ok imma give a full rundown of the situation. Currently on the network we are on because of the way it is setup wake on lan doesn't work, so SCCM has at best a 70 success rate for patching. So I am currently spending a couple days a week remoting into computers and running a batch file to manually...
Installation & Setup
[Help] Crash Windows 7 Computer, Batch File [Wrong Section?]
Hey guys, i'm new to this forum, obviously since this is only my first post. I don't know where to actually post this so if a forum mod would like to move this feel free. But i'm looking for a way to crash a Windows 7 computer, using a batch file. I know a decent amount about DOS/Batch files,...
General Discussion
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion
Batch file over the network
I am trying to get some inhouse legacy software to work. This is going to be a bit wordy so hold tight. Machine using the software: XP Machine storing the data: Windows 7 Pro The software is homebrewed. The user selects a vessel and needs to program a hardware key. Our program uses a...
Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 19:36.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App