Greetings
I ve downloaded depicus wake on lan file (https://www.depicus.com/wake-on-lan/wake-on-lan-cmd) and i ve created a bat file to wake on my server.
my bat file is this
echo on
WolCmd.exe [MAC ADR] [IP] 255.255.255.0 7
pause
When i double click it i get a window that says "press any key to continue". I do not want this message to appear (i want the window to disappear after 2-3 seconds). How could i do that?
Depicus wake on lan batch file question
Moderator: DosItHelp
-
- Posts: 128
- Joined: 23 May 2016 15:39
- Location: Spain
Re: Depicus wake on lan batch file question
that's what pause command does, wait for user to press a key. simply change to to wait two seconds
Code: Select all
pause
Code: Select all
timeout /t 2
Re: Depicus wake on lan batch file question
Thanks! That did the trick!
Re: Depicus wake on lan batch file question
For older versions of windows that do not have timeout as a command, but do have a tcp/ip stack installed, I use the following for a timer:where SECONDS is the number of seconds you want to pause.
Code: Select all
ping -n SECONDS 127.0.0.1 > NUL