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

?environment.GetFolderPath (Environment.SpecialFolder.System )
"D:\WINDOWS\system32"

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........

Member Avatar for iamthwee

Solution:

Look in both C: and D: :)

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.