How to construct url of windows shared printer for cups client

Solution 1:

From this page:

smb
This backend sends print files to printers shared by a Windows host. Examples 
of CUPS device-URIs that may be used includes:

    smb://workgroup/server/printersharename
    smb://server/printersharename
    smb://username:password@workgroup/server/printersharename
    smb://username:password@server/printersharename

The smb:// backend is a symlink to the Samba utility smbspool (does not ship with
CUPS). If the symlink is not present in your CUPS backend directory, have your 
root user create it: ln -s `which smbspool' /usr/lib/cups/backend/smb .