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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mapping network drives

Status
Not open for further replies.

bdzot

Programmer
May 21, 2002
5
US
Currently, I'm using MS-DOS to access several different servers to move files between offices. I'd like to use Visual Basic instead....gotta impress the boss, you know, so when that hallowed programmer position opens up, I'm considered.

I'd either like to use VB to map the drives to my computer, transfer the files, and then unmap them, or run the MS-DOS batch files (shell) to access the files, but not show the DOS windows. Dietel and Dietel's book isn't particularly helpful.

I'd like to keep the code fairly simple and straight-forward. The platform will be WinNT.

Any help would be appreciated.
 

You do not need to map the drives to the operation computer, you can use UNC paths to accomplish what you want (\\servername\sharename\foldername\filename).

Good Luck

 
That'd be easy enough. However, I have to use a login and password to access the server..what syntax would I use to establish the connection?
 

If the login that was to have the program running had permissions to access the share then you would not need to login to the server.

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top