|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Check Mapped Drive is ConnectedHi
I need to check that a mapped drive is connected before continuing some code. How can i do this? Many thanks B Dim a As New IO.DriveInfo("z")
if a.isReady then msgbox("is connected ") else .... Show quoteHide quote "Ben" <B**@Newsgroups.microsoft.com> wrote in message news:O6Rjt%23AVGHA.5580@TK2MSFTNGP11.phx.gbl... > Hi > > I need to check that a mapped drive is connected before continuing some > code. > > How can i do this? > > Many thanks > B > > Hi Luis
Thanks for your post, but i receive the error DriveInfo not declared. B Show quoteHide quote "Luis Gustavo" <luis.gust***@medtech-angola.com> wrote in message news:O1ABsJBVGHA.4608@tk2msftngp13.phx.gbl... > Dim a As New IO.DriveInfo("z") > if a.isReady then > msgbox("is connected ") > else > .... > > > "Ben" <B**@Newsgroups.microsoft.com> wrote in message > news:O6Rjt%23AVGHA.5580@TK2MSFTNGP11.phx.gbl... > > Hi > > > > I need to check that a mapped drive is connected before continuing some > > code. > > > > How can i do this? > > > > Many thanks > > B > > > > > > try this
Dim di As New System.IO.DirectoryInfo("C:") If di.Exists() Then End If Ben wrote: Show quoteHide quote > Hi Luis > > Thanks for your post, but i receive the error DriveInfo not declared. > > B > > "Luis Gustavo" <luis.gust***@medtech-angola.com> wrote in message > news:O1ABsJBVGHA.4608@tk2msftngp13.phx.gbl... > > Dim a As New IO.DriveInfo("z") > > if a.isReady then > > msgbox("is connected ") > > else > > .... > > > > > > "Ben" <B**@Newsgroups.microsoft.com> wrote in message > > news:O6Rjt%23AVGHA.5580@TK2MSFTNGP11.phx.gbl... > > > Hi > > > > > > I need to check that a mapped drive is connected before continuing some > > > code. > > > > > > How can i do this? > > > > > > Many thanks > > > B > > > > > > > > > > try this
Dim di As New System.IO.DirectoryInfo("C:") If di.Exists() Then End If Ben wrote: Show quoteHide quote > Hi Luis > > Thanks for your post, but i receive the error DriveInfo not declared. > > B > > "Luis Gustavo" <luis.gust***@medtech-angola.com> wrote in message > news:O1ABsJBVGHA.4608@tk2msftngp13.phx.gbl... > > Dim a As New IO.DriveInfo("z") > > if a.isReady then > > msgbox("is connected ") > > else > > .... > > > > > > "Ben" <B**@Newsgroups.microsoft.com> wrote in message > > news:O6Rjt%23AVGHA.5580@TK2MSFTNGP11.phx.gbl... > > > Hi > > > > > > I need to check that a mapped drive is connected before continuing some > > > code. > > > > > > How can i do this? > > > > > > Many thanks > > > B > > > > > > > > > > Thanks
Thats perfect. B Show quoteHide quote "parez" <psaw***@gmail.com> wrote in message news:1143736545.091197.39320@i40g2000cwc.googlegroups.com... > try this > > > Dim di As New System.IO.DirectoryInfo("C:") > If di.Exists() Then > > End If > > > > Ben wrote: > > Hi Luis > > > > Thanks for your post, but i receive the error DriveInfo not declared. > > > > B > > > > "Luis Gustavo" <luis.gust***@medtech-angola.com> wrote in message > > news:O1ABsJBVGHA.4608@tk2msftngp13.phx.gbl... > > > Dim a As New IO.DriveInfo("z") > > > if a.isReady then > > > msgbox("is connected ") > > > else > > > .... > > > > > > > > > "Ben" <B**@Newsgroups.microsoft.com> wrote in message > > > news:O6Rjt%23AVGHA.5580@TK2MSFTNGP11.phx.gbl... > > > > Hi > > > > > > > > I need to check that a mapped drive is connected before continuing some > > > > code. > > > > > > > > How can i do this? > > > > > > > > Many thanks > > > > B > > > > > > > > > > > > > > > This soluction is for framework 2
In FrameWork 1.1 Dim a As System.IO.Directory if a.Exists("z:\") then msgbox("is connected ") else .... Show quoteHide quote "Ben" <B**@Newsgroups.microsoft.com> wrote in message news:%23vRArUBVGHA.4900@TK2MSFTNGP12.phx.gbl... > Hi Luis > > Thanks for your post, but i receive the error DriveInfo not declared. > > B > > "Luis Gustavo" <luis.gust***@medtech-angola.com> wrote in message > news:O1ABsJBVGHA.4608@tk2msftngp13.phx.gbl... >> Dim a As New IO.DriveInfo("z") >> if a.isReady then >> msgbox("is connected ") >> else >> .... >> >> >> "Ben" <B**@Newsgroups.microsoft.com> wrote in message >> news:O6Rjt%23AVGHA.5580@TK2MSFTNGP11.phx.gbl... >> > Hi >> > >> > I need to check that a mapped drive is connected before continuing some >> > code. >> > >> > How can i do this? >> > >> > Many thanks >> > B >> > >> > >> >> > >
Do properties return byref or byval?
select text in textbox call method on passed form VB .Net with ADSI problem Convert IsMissing, IsNull, VBempty to vb.net Easily upgrade B to VB.NET Basic Question - Working with forms Operators do not work in VB.NET with a C# referenced assembly Recast an exception to its original type 3rd party grid control in Visual Basic.net 2005 |
|||||||||||||||||||||||