Creating Logon script

IDLE

OSNN Senior Addict
Joined
13 Feb 2004
Messages
375
I am trying to creat a login script for a printer to be installed. i have tried different ways. im doing this in a 2000 enviroment but i get errors everytime i run the script. this is what has been done in notepad:

Set net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection "\\ServerName\LD024c"


the printer is shared. Note: the servername is chaned to my needs. here is hte error i get when running the script:

Script C:/(basically the path of the file)
Line 2
Char 1
Error the file name, directory name, or volume label syntax is incorrect.

Code 8007007b
Source (null)


i am creating this on my XP pro workstation. and when I run the script I get the error above. Any help would be great thanks!
 

Members online

No members online now.

Latest profile posts

Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?

Forum statistics

Threads
62,007
Messages
673,466
Members
5,598
Latest member
Larry Chris