it doesn't even go into that part of the code, the primapstate return false and goes into the else part and I see on screen both message of printer not found. The printer is really on my computer... I even tried this way and still end up with printer not found:
 Code:
? "checking if printer on server exist check 2"
If primapstate("\\server\HP LaserJet P4014/P4015 PCL6")
   $RC=delprinterconnection("\\server\HP LaserJet P4014/P4015 PCL6")
   ? "result 2: "+@Error+" - "+@SError
Else
   ? "printer not found on check 2"
Endif

any more suggestion welcome