Hey, I'm very new when working with %userprofile% ect, The code I have now is.
When I press the button VB tell me It cannot find the directory. Please note I've tried %Userprofile%, %userprofile% Nothing will work :/ What's wrong? And How do I go about fixing this.
Private Sub testbutton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles testbutton.Click
Dim s As String = Environment.GetEnvironmentVariable("UserProfile")
Dim writeRes As New FileStream("C:\Users\UserProfile\AppData\Roaming\.ProjectName\Data\Test.exe", FileMode.Create)
Dim binWrite As New BinaryWriter(writeRes)
binWrite.Write(My.Resources.Test)
binWrite.Close()