Before you can write that code, you have to decide how you plan to do it.
Do you plan to map a drive on the Windows box to the Unix box? Or is there an FTP server or an HTTP server on the machine which you aren't going to run your code on? Or what?
And I will move this post to a more suitable forum.