| View previous topic :: View next topic |
| Author |
Message |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Dec 29, 2002 4:57 pm Post subject: Help with vdsiwake.dll |
|
|
I am trying to create a script that will turn on remote computers. I am
using the following code:
| Code: |
external vdsiwake.dll,Your Registration Code Here
list create,1
list loadfile,@path(%0)data.txt
%%index1 = 0
repeat
%%mac = @item(1,%%index1)
IWAKE WAKE,255.255.255.255,%%mac
%%index1 = @succ(%%index1)
until @greater(%%index1,@count(1))
%%index = ""
list close,1 |
However, this code doesn't work. It works when I place the MAC
address directly after the IWAKE command. However, this script takes
the line in the list that %%index1 points to, then runs the command on
that. I get a Non-Numeric Value error when the command is
executed and the packet is not sent.
I checked the MAC addresses to make sure that they are valid and so
far it looks as if they are.
Any ideas or tips would be great.
- FreezingFire |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun Dec 29, 2002 5:52 pm Post subject: |
|
|
One thing....
This line:
until @greater(%%index1,@count(1))
Should be
until @equal(%%index1,@count(1))
You might also add this in the loop:
INFO test @item(1, %%index1)
to view what's actually in the list...
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 768 Location: Eastman, GA
|
Posted: Sun Dec 29, 2002 5:54 pm Post subject: |
|
|
Can you post a fake copy of data.txt please?
The problem may lay with @chr(10) and @chr(13)
NodNarb |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Dec 29, 2002 6:00 pm Post subject: |
|
|
Thanks Mac!
I was really banging my head into the wall on that one.
I had tried testing with an info box to see what was in the list and everything
looked right, and that's why I couldn't figure it out.
NodNarb, data.txt simply held a list of MAC Addresses to send the iwake
command with. You can find your computer's MAC Address by running
command.com and typing "ipconfig /all". The MAC Address is the
Physical Address, and in this case with the DLL it would need to be used
without the hyphens.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Sun Dec 29, 2002 8:59 pm Post subject: |
|
|
FreezingFire,
Just to make sure, does it indeed work well now, i.e. does it actually turn the computers on? |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Jan 01, 2003 1:49 am Post subject: |
|
|
Is VDSIWAKE.DLL compatible with Windows XP Home? I am having some
trouble with that. I will need to check the MAC Address etc.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Wed Jan 01, 2003 1:54 am Post subject: |
|
|
It really is supposed to be... It only requires a very low version of winsockets (1.1).
For me it has been working very well on Windows XP Pro, that is the system the packet
is being sent from.
Please tell me if you meant that the receiving computer is a Windows XP one.
Tommy |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Jan 01, 2003 2:02 am Post subject: |
|
|
I'm sending the packet from a Windows XP Pro computer, and as far as
I tested it the other day, the other computer did not turn on. However,
it may be configured incorrectly or I could be using the incorrect MAC
Address. I will check on this and let you know about the results.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Jan 01, 2003 5:35 pm Post subject: |
|
|
FreezingFire,
The users on your network don't know how to turn a computer on and off? Just kidding.... _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Jan 01, 2003 7:25 pm Post subject: |
|
|
| Quote: | The users on your network don't know how to turn a computer on and off? Just kidding.... |
LOL... no I'm just writing an iwake script for the network administrator
group.
___________
I checked out the computer configuration by going into setup at boot. All
looks fine there.
I checked the MAC Address and tried again and no luck.
I used the following for testing:
| Code: | | IWAKE WAKE,255.255.255.255,<<MAC ADDRESS>> |
I'm sending the packet from XP Pro to XP Home... What I'm thinking is that
this might require a part of Win XP to work. I'm going to try it the other
way around -- send the Packet from the Windows XP home to the XP Pro. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Jan 01, 2003 9:38 pm Post subject: |
|
|
Ok... I tried it out using the target computer as Windows XP Pro. It works
excellent now.
Where I am making the script for we have all Windows 200 Professional.
I think it will work!
Thanks for all of your help.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Fri Jan 03, 2003 1:51 pm Post subject: |
|
|
| FreezingFire wrote: | | Where I am making the script for we have all Windows 200 Professional. |
damn, old operating system you got there
Could you post the source/program here when it's finished? |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Jan 03, 2003 7:52 pm Post subject: |
|
|
OOPS --
Missed a zero there.
Basically what the script does is take a list of computers saved in a DATA.TXT
file, then goes through a repeat/until loop, using the DLL command to
send the iwake packet.
When I finish with the script I might post it.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Fri Jan 03, 2003 10:04 pm Post subject: |
|
|
| FreezingFire wrote: | Basically what the script does is take a list of computers saved in a DATA.TXT
file, then goes through a repeat/until loop, using the DLL command to
send the iwake packet. |
Is it a secret how you manage to get the names of all computers on the network? Or do you create that file yourself? |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Jan 03, 2003 10:33 pm Post subject: |
|
|
Here's the basic code:
| Code: | OPTION ERRORTRAP,ERROR
EXTERNAL VDSIWAKE.DLL,Registration Information Here
LIST CREATE,1
LIST LOADFILE,1,@PATH(%0)DATA.TXT
%x = 0
REPEAT
IWAKE WAKE,255.255.255.255,@ITEM(1, %x)
%x = @SUCC(%x)
UNTIL @EQUAL(%x, @COUNT(1))
INFO Finished at @DATETIME(t)...
LIST CLOSE,1
EXIT
:ERROR
WARN An error occurred at list line %x at @DATETIME(t)
EXIT |
As for the computer list: it is a long and tedious process to find all of the
MAC Addresses of the network computers, but it is currently done manually.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|