I don't know what went wrong, but I am not able to create a folder using the following code My.Computer.FileSystem.CreateDirectory(Environ("%UserProfile%") & "\Desktop\abc") Code (markup):
Try My.Computer.FileSystem.CreateDirectory(Environment.GetEnvironmentVariable("USERPROFILE") + "\Desktop\abc") Code (markup):