Script help

Tech-Archive recommends: Fix windows errors by optimizing your registry



I am a complete scripting newbie, and I am in a bit of a bind.

I need a script that runs "net use \\ipaddress\IPC$" for the entire length of a class C subnet. It's just a loop and the call of the command, but I have know idea about how to call the net command.

' ipc_setup.vbs

Option Explicit

Dim i

Wscript.Echo "Attach to all IPC$ named pipes"
Wscript.Echo ' blank line for spacing

i = 1
Do While i < 255
<call net use \\10.1.1.$i\IPC$ password /user:domain\account>
i = i + 1
Loop
Wscript.Echo

Hope someone can help me out.
.