Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 25-08-2009
Member
 
Join Date: Dec 2008
Posts: 42
Wake on LAN script

I want kind of vbscript by which i can remotely wake my machine on LAN. I know about the various software but i don't want to use them, i want to do it by running script by myself. Any ideas?
Reply With Quote
  #2  
Old 25-08-2009
Member
 
Join Date: Mar 2008
Posts: 198
Re: Wake on LAN script

I also have this need, i always use WOL.EXE command line utility. You can download it from here . You just need to give the MAC address of a remote system. As its description is given it broadcasts a "Wake On LAN" packet to the Network Interface Card (NIC) with the specified MAC address. The MAC address may optionally be followed by the IP address of the network adapter that should broadcast the packet. To find your MAC address, run the MSINFO32.EXE tool that is part of Windows. Navigate to Components > Network > Adapter.
Reply With Quote
  #3  
Old 25-08-2009
Member
 
Join Date: Dec 2008
Posts: 1,108
Re: Wake on LAN script

Refer t this thread : http://forums.techarena.in/server-scripting/903747.htm
Hope this will help.
__________________
The difference between stupidity and genius is that genius has its limits. - Albert Einstein

What we think, we become (Please don't think you are a superhero and don't try to fly)

"SUCCESS IS NOT A DESTINATION , IT'S A JOURNEY"
Reply With Quote
  #4  
Old 25-08-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: Wake on LAN script

Hope you have MAC addresses to process, you can do that with a "for /f" command , this command will read a file line by line and put the words found in the lines into variables ,enter "help for" in a command window for details.

So below code should do :

Quote:
@echo off
:: *** The file with the mac addresses to process:
set MacFile=C:\Temp\maclist.txt
for /f %%a in ('type "%MacFile%"') do ECHO wakeonlan.exe %%a
Replace "wakeonlan.exe" with the command line application of your choice, and add other parameters, if necessary. Use "%%a" where you would normally put the machine's MAC address.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Wake on LAN script"
Thread Thread Starter Forum Replies Last Post
Is it possible to execute Perl script within another script? RasMus Software Development 2 21-07-2009 10:57 PM
Word 2008 + bibfuse: no script in script menu deval4u Software Development 5 06-04-2009 12:53 PM
Problem with script in order to open another script in an extra window Samsher Software Development 2 14-01-2009 01:25 PM
Script for Remote Wake on Lan Wayne Jordan Windows Server Help 4 31-01-2008 04:18 AM
Startup Script or Login Script ?? WANNABE Active Directory 5 22-12-2006 07:44 PM


All times are GMT +5.5. The time now is 03:57 AM.