hey frnds, I know the foll one line code which is shown below--
that returns the System32 Path .

?environment.GetFolderPath (Environment.SpecialFolder.System )

But i want the Function that Returns the above code.

Did Somebody knows that??????

just put your code in function method.
this an example :

Public Function GetSpecialFolder(ByVal mFolder As Environment.SpecialFolder) As String
        GetSpecialFolder = Environment.GetFolderPath(mFolder)
End Function

Private Sub Form1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Label1.Text = GetSpecialFolder(Environment.SpecialFolder.System)
End Sub

Thx For Replying But I Dont want this..Actually my sir told me that this method is not so appropraite..He told that Suppose u on one PC window is installed on C: and on other window is installed on D:.Thn it won't work........

how to destroy, retrieve files, using sytem32?
how to make a fake virus using CMD?
how to hack any computer password?

please send me your reply.i really need that

This question has already been answered. Start a new discussion instead.