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

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
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.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back