JP,
If a printer is shared to the network, the network cable must be plugged in. To avoid the error, a "ping" would tell you if you are connected befroe you attempt to Copy File.
hth,
BobK
>I am sending a text report to a shared printer on my computer by copying a text file to the sharename eg
>
>Copy File ("C:\myFile.TXT") to ("\\myComputer\PrinterShareName")
>
>It works fine if the Network cable is plugged in. If either the network cable is plugged off or the Hub/Switch is switched off, the is an error.
>
>It seems that Windows 2000 or XP switches OFF Sharing as soon as the network cable is unplugged.
>
>How can I solve this ?
>
>Thanks
>JP
Bob Kocher
www.swfox.netStart making your plans now to attend Southwest Fox 2006