WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Microsoft Client
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Only Map Drive When It's Not Already Mapped

Keywords:   detect map drive mapped drive

Question:

I want to connect a drive only if that drive is not connected. It's for a NT mapping.

Answer:


AddExtender('WWW9534I.DLL')

sDrive = 'S:' ; the drive
sShare = '\\server\Sharename'; its sharename
sUNC = StrCat(sServer,'\',sShare);Uniform Naming Convention

If w95GetDrive(sUNC) != sDrive Then
	w95AddDrive@default,@default,sUNC,sDrive,@True)
endif

Article ID:   W14116
Filename:   Only Map Drive when It's Not.txt
File Created: 2001:03:01:13:52:48
Last Updated: 2001:03:01:13:52:48