I have the following code and I want it to retrieve the current directory only.. so if the directory is:
d:\inetpub\
it will return only:
LALALA
shouldn't this do it:
Dim strsubdomain As String = Server.MapPath(".")
Dim newpath As String
lblstatus1.Text = strsubdomain
newpath = Microsoft.VisualBasic.Right(lblstatus1.Text, 24)
lblstatus2.Text = newpath
Would this not trim the first 24 characters of the directory structure starting at d:?
according to the msdn it should, but I cannot get it to work, it actually shows the first 24 characters and trims the rest.
d:\inetpub\
it will return only:
LALALA
shouldn't this do it:
Dim strsubdomain As String = Server.MapPath(".")
Dim newpath As String
lblstatus1.Text = strsubdomain
newpath = Microsoft.VisualBasic.Right(lblstatus1.Text, 24)
lblstatus2.Text = newpath
Would this not trim the first 24 characters of the directory structure starting at d:?
according to the msdn it should, but I cannot get it to work, it actually shows the first 24 characters and trims the rest.