Question Locked

Visual Basic 2010 Express User

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have the code

My.Computer.FileSystem.CopyFile("C:\user\luke\appdata\roaming\.minecraft\bin\minecraft.jar")

How can i replace the user luke with a user that can work on anyones computer who downloads this file?

2 replies

by cmiller5400

You could grab it from the "My.Computer.FileSystem.SpecialDirectories.MyDocuments" function.

This discussion is closed to new replies.