Discussion Locked

Remote File and Folder List in VB

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need to write a program that lists files and folders on a remote computer in Visual Basic.
I also need to change the Files and Folders it displays.If anyone could please help.
Thanks
sybrandk@comparexafrica.co.za

1 reply

by jay eckles

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

This discussion is closed to new replies.