Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: oBdAPosted on 2007-02-20 at 11:28:58ID: 18573147
Assuming you have a list of the MAC addresses to process, you can do that with a "for /f" command.
t
com/ if you're looking for a nice website about batch scripting.
"for /f" 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 something like this should do the trick:
@echo off
:: *** The file with the mac addresses to process:
set MacFile=C:\Temp\maclist.tx
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.
Check http://www.robvanderwoude.