Hey guys I'm figuring this stuff out slowly but surely. I have a question and I'm getting confused. I have mostly 98 machines (against my will) and I need to add a new network printer. I got my sendkeys done but I'm getting confused on having the script to check the machine to see if the printer is already installed. I'm just totally confused on how to do this. I've read many posts including the "add orinter on 9x clients!" but my head is still garbage. I know once I see what needs to be done I'll kick myslef in the rear. Thanks for any help.

if @inwin = 1
? "......Please wait......"
If ADDPRINTERCONNECTION ("\\tpaprime01\prt2315") = 0
? "Added printer connection to \\tpaprime01\prt2315 ...."
else
? "Error = @error"
Endif
else
RUN "rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL AddPrinter"
? "Please Wait"
sleep 1
sendkeys ("{ENTER}")
sendkeys ("~N")
sendkeys ("{ENTER}")
sendkeys ("~P")
sendkeys ("\\tpaprime01\prt2315")
sendkeys ("~N")
sendkeys ("{ENTER}")
sleep 1
sendkeys ("~N")
sendkeys ("{ENTER}")
sendkeys ("~N")
sendkeys ("{ENTER}")
sleep 1
? "Checking Printer..."
endif