Search found 16 matches

by Haris1977
06 May 2020 03:26
Forum: DOS Batch Forum
Topic: Depicus wake on lan batch file question
Replies: 3
Views: 1565

Re: Depicus wake on lan batch file question

Thanks! That did the trick! :D
by Haris1977
05 May 2020 14:11
Forum: DOS Batch Forum
Topic: Depicus wake on lan batch file question
Replies: 3
Views: 1565

Depicus wake on lan batch file question

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 con...
by Haris1977
17 Nov 2014 07:13
Forum: DOS Batch Forum
Topic: CAN THIS BE DONE??
Replies: 6
Views: 2158

Re: CAN THIS BE DONE??

Dosn't work :cry: . Anyway its ok thank you guys :)
by Haris1977
17 Nov 2014 05:13
Forum: DOS Batch Forum
Topic: CAN THIS BE DONE??
Replies: 6
Views: 2158

Re: CAN THIS BE DONE??

My bat supposses to work like this: 1) ping ip's from 192.168.1.100 to 115 (edit : the pc's ip that this bat is running is 192.168.1.110) 2) If only ONE ip is active (like 192.168.1.110 which will ALWAYS be active because this is my server's ip) then the script sends a command to pc to sleep 3) If a...
by Haris1977
17 Nov 2014 03:54
Forum: DOS Batch Forum
Topic: CAN THIS BE DONE??
Replies: 6
Views: 2158

CAN THIS BE DONE??

Greetings A friend from this site gave me a *.bat file which does the following: 1) pings specific ip addresses 2) If no active adress is scaned - except for the one of the server of course- then the pc sleeps This is the bat file: SETLOCAL :LOOP SET "_CNT=0" FOR /L %%A IN (100,1,115) DO (...
by Haris1977
23 Sep 2014 14:21
Forum: DOS Batch Forum
Topic: Dos command for wol (wake on lan) and sol (sleep on lan)
Replies: 4
Views: 2674

Dos command for wol (wake on lan) and sol (sleep on lan)

Greetings

I am trying to wake my remote pc with a dos command/batch file. I am also trying to put it to sleep through an other command.

Suppossing my pc's ip is 192.168.1.110 and its mac is 00:1E:33:0B:3B:03 anyone knows what those 2 commands are?

Thanks!
by Haris1977
23 Sep 2014 08:52
Forum: DOS Batch Forum
Topic: BATCH FILE TO PING MULTIPLE IP'S AND DO AN ACTION (IF/ILSE)
Replies: 16
Views: 17680

Re: BATCH FILE TO PING MULTIPLE IP'S AND DO AN ACTION (IF/IL

Doesnt work. Still says press any key to continue Anyway a friend helped me with this and this is the correct file: @ECHO OFF & SETLOCAL :LOOP SET "_CNT=0" FOR /L %%A IN (100,1,115) DO ( PING -n 2 192.168.1.%%A|FIND "TTL=">NUL && SET/A _CNT+=1) IF %_CNT% EQU 1 RUNDLL3...
by Haris1977
23 Sep 2014 07:52
Forum: DOS Batch Forum
Topic: BATCH FILE TO PING MULTIPLE IP'S AND DO AN ACTION (IF/ILSE)
Replies: 16
Views: 17680

Re: BATCH FILE TO PING MULTIPLE IP'S AND DO AN ACTION (IF/IL

I test it with my pc. Good thing is that when going to 192.165.1.115 pc does go to sleep if any ip is detected. I think it works (i ll have to test it though to see it in action) Problem is that when i wake the pc the script does not auto start again. It gave me this pic m How can this be auto start...
by Haris1977
23 Sep 2014 06:49
Forum: DOS Batch Forum
Topic: BATCH FILE TO PING MULTIPLE IP'S AND DO AN ACTION (IF/ILSE)
Replies: 16
Views: 17680

Re: BATCH FILE TO PING MULTIPLE IP'S AND DO AN ACTION (IF/IL

When running it no commands are executed. I will run it again when my second pc (with ip 192.168.1.110) goes offline (i am using it as a nas and now it is active)
by Haris1977
23 Sep 2014 06:41
Forum: DOS Batch Forum
Topic: BATCH FILE TO PING MULTIPLE IP'S AND DO AN ACTION (IF/ILSE)
Replies: 16
Views: 17680

Re: BATCH FILE TO PING MULTIPLE IP'S AND DO AN ACTION (IF/IL

Yes i call it Ping.bat

I run it on my 1rst pc (192.168.1.100) while my other pc (with 192.168.1.110) was in the internet. Maybe thats why? :|
by Haris1977
23 Sep 2014 06:18
Forum: DOS Batch Forum
Topic: BATCH FILE TO PING MULTIPLE IP'S AND DO AN ACTION (IF/ILSE)
Replies: 16
Views: 17680

Re: BATCH FILE TO PING MULTIPLE IP'S AND DO AN ACTION (IF/IL

A friend gave me this (as an expample) @ECHO OFF SETLOCAL ENABLEEXTENSIONS SET BaseRAnge=192.168.1 SET Min=100 SET Max=115 SET Counter=0 FOR /L %%A IN (%Min%,1,%Max%) DO ( ECHO Pinging %BaseRange%.%%A PING -n 1 %BaseRange%.%%A >nul 2>&1 &&SET /A Counter+=1 ) IF %Counter% GTR 0 ( ECHO Suc...