Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remote file access

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
is it possible to create the following application using vc++?

inputs to the application :
1) IP address of a computer on a network
2) the name of the "shared" folder on that remote computer

what my application should do :

1) display a listing of all the files in the shared folder on the remote
machine
2) retrieve a file from the shared folder on the remote machine to my machine.

basically..the functionality is somewhat similar to windows explorer's 'Map Network Drive'...only..my application needs to do it.

can anyone help me out here???

thanks a lot anyways! :)

 
You can try to do it with NetFileEnum(), NetReplImportDirEnum() etc. functions (look sample Netwatch).
To get names from addresses, You can use gethostbyaddr() etc.
To do it with all folders by using a Browser, You can start on the remote computer a http-server(look MFC-Sample HTTPSVR).
Samples are in MSDN or on search.microsoft.com.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top