Obviously the user running the program will have to have access to the remote computer. For the sake of simplicity, I'll assume that the remote computer is also running Windows. If the remote machine is mapped as a shared drive, then you just do adirectory listing on that drive letter. If the machine isn't mapped as a share, then you can use the good ol' "net use" command to map it temporarily while you get the directory listing. If you can't map the machine, perhaps you could use some other network protocol to get a directory listing...ftp, for example. At some point the remote server has to be set up to allow access to the user of your application. I don't see any way around that.
Good luck.
Jay Eckles
www.jayeckles.com