|
|
|||||||
I would like to hide the output (zeros) for my printer migration. If searched the forums for examples and have not been able to find one that I fully understand. I see several references to using $RC = but I don't know what to put after $RC. Example. AddPrinterConnection ("\\server1\printer1") AddPrinterConnection ("\\server1\printer2") AddPrinterConnection ("\\server1\printer3") If SetDefaultPrinter("\\server\printer")=0 $RC = Thanks in advance for your help. |
||||||||
|
|
|||||||
Quote: The manual has many examples and I wrote a FAQ on it as well. |
||||||||
|
|
|||||||
you may have searched for the wrong keywords ... look here : Why does the console display zeros and ones (amongst others)? |
||||||||
|
|
|||||||
If you put $rc = before for example Open(1,"c:\somefile.txt",2). The return code from Open is placed in the $rc variable. You can check on the contents of $rc to see the result or you could just leave $rc alone and be done with it. |