>declare integer WNetAddConnection In Win32Api as WNetAdd string @ RemoteDrive, String @ Password, String @ Localdrive >Local lcRemote, lcPassword, lcLocal, lcPrvDrive >lcRemote="\\kanta\d:" >lcPassword="" >lcLocal="Z:" > >If !Empty(WNetAdd(@lcRemote, @lcPassword, @ lcLocal)) > Wait "Mapping Failed" Wind >Else > Wait "Drive Mapped" Wind >Endi >>