forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help with vdsiwake.dll
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Dec 29, 2002 4:57 pm    Post subject: Help with vdsiwake.dll Reply with quote

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. Confused 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. Confused

I checked the MAC addresses to make sure that they are valid and so
far it looks as if they are. Confused

Any ideas or tips would be great. Very Happy

- FreezingFire
Back to top
View user's profile Send private message Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sun Dec 29, 2002 5:52 pm    Post subject: Reply with quote

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... Wink

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 768
Location: Eastman, GA

PostPosted: Sun Dec 29, 2002 5:54 pm    Post subject: Reply with quote

Can you post a fake copy of data.txt please?

The problem may lay with @chr(10) and @chr(13)

NodNarb
Back to top
View user's profile Send private message AIM Address
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Dec 29, 2002 6:00 pm    Post subject: Reply with quote

Thanks Mac! Worship

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. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Sun Dec 29, 2002 8:59 pm    Post subject: Reply with quote

FreezingFire,

Just to make sure, does it indeed work well now, i.e. does it actually turn the computers on?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Jan 01, 2003 1:49 am    Post subject: Reply with quote

Is VDSIWAKE.DLL compatible with Windows XP Home? I am having some
trouble with that. I will need to check the MAC Address etc. Confused

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Wed Jan 01, 2003 1:54 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Jan 01, 2003 2:02 am    Post subject: Reply with quote

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. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Wed Jan 01, 2003 5:35 pm    Post subject: Reply with quote

FreezingFire,
The users on your network don't know how to turn a computer on and off? Laughing Just kidding....

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Jan 01, 2003 7:25 pm    Post subject: Reply with quote

Quote:
The users on your network don't know how to turn a computer on and off? Laughing Just kidding....


LOL... no I'm just writing an iwake script for the network administrator
group. Wink
___________

I checked out the computer configuration by going into setup at boot. All
looks fine there. Confused

I checked the MAC Address and tried again and no luck. Sad
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
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Jan 01, 2003 9:38 pm    Post subject: Reply with quote

Ok... I tried it out using the target computer as Windows XP Pro. It works
excellent now. Very Happy

Where I am making the script for we have all Windows 200 Professional.
I think it will work! Very Happy

Thanks for all of your help. Very Happy

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Fri Jan 03, 2003 1:51 pm    Post subject: Reply with quote

FreezingFire wrote:
Where I am making the script for we have all Windows 200 Professional.

damn, old operating system you got there Laughing

Could you post the source/program here when it's finished?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Jan 03, 2003 7:52 pm    Post subject: Reply with quote

OOPS -- Embarassed

Missed a zero there. Wink

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. Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Fri Jan 03, 2003 10:04 pm    Post subject: Reply with quote

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? Smile Or do you create that file yourself?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Jan 03, 2003 10:33 pm    Post subject: Reply with quote

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. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group