How do I get the same result from this Python script in Visual Basic?
import os
username = os.getenv("USERNAME")
desktop = "C:\\Documents and Settings\\%s\\Desktop\\" % username
print desktop
#Result = C:\Documents and Settings\<MY USERNAME>\Desktop\
I already have this,
Public Shared username As String = My.User.Name 'Gives computer name then username. That isn't going to work
Public Shared desktop As String = "C:\Documents and Settings\<USERNAME>\Desktop"