shane i cant get it to work?
i have a couple of questions do i need to specifiy a $file option?

for example does $file=\\servername\temp, how does it know where to place junk.txt?

second. i cant get it to work. lol help!