So I need somone to tell me how to fix this code. I’m trying to rename a file which is in C:\%appdata%\Roaming\.minecraft\bin\XenonUpdate.jar to minecraft.jar.
The code I am using is:
My.Computer.FileSystem.RenameFile("C:\%appdata%\Roaming\.minecraft\bin\XenonUpdate.jar", "minecraft.jar")
Can someone fix this?
%appdata%not not a valid path, rather it denotes a special folder that you can get by usingEnvironment.GetFolderPath, once a get the%appdata%path, you can easily rename file.