Hi everybody

I have found thes code in the UDF libaray :
function PrintTo($_file,$_printer)
dim $,$_
$_=split($_file,"\")
if ubound($_) $_file=$_[ubound($_)] endif
$_[ubound($_)]=""
$_=join($_)
$=createobject("shell.application")
$.ShellExecute($_file, $_printer, $_, "printto", 0)
exit @error
endfunction

and tried it, but there are three things, if i'm sending a PDF file to a printer it also starts Acrobat reader and show the file there, Why ?

And one more thing if don't delete these 4 lines in the code, it wont work, what does these 4 lines do ?
$_=split($_file,"\")
if ubound($_) $_file=$_[ubound($_)] endif
$_[ubound($_)]=""
$_=join($_)

And the last thing, what does these two lines in the code means :

$=createobject("shell.application")
$.ShellExecute($_file, $_printer, $_, "printto", 0)

Hope anybody can help me