[Solved] Why doesn’t this code work? (VB.Net)


To get the home directory of the current user use:

Dim homeDir As String = System.Environment.GetEnvironmentVariable("USERPROFILE")

Then copy the file:

My.Computer.FileSystem.CopyFile("D:\FrewGame\Game\FrewShort.lnk", homeDir & "\Desktop\" & "Name.lnk")

3

solved Why doesn’t this code work? (VB.Net)