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

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?
Perris Calderon wrote on Electronic Punk's profile.
Hey EP! All good with me, applying for Microsoft MVP right now, should have done this a while ago.

Notifications don't work, I only found your response by coming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier!

Forum statistics

Threads
61,999
Messages
673,424
Members
5,592
Latest member
Rhilani