I need help on the below code, im a absolute noob please be kind
I'll try to explain what im trying to do, XXXXX below needs to be replaced with path to SystemDrive, but i cant use %SystemDrive% Envirement Variable, i cant use C:\ as it is a fixed path(not all PC's have xp on c drive)
All i got to do is copy a file from my burnt cd (some Path) with my app to various xp installs
Public Sub Button20_Click() Handles Button20.Click
Dim str As [String]
Dim query As [String] = "%SystemDrive%"
str = Environment.ExpandEnvironmentVariables(query)
My.Computer.FileSystem.CopyFile("Register.key", "XXXXX\Program Files\Register.key")
I know i sux at coding, but if anyone can help please please could u have full example. I appreciate any kind of feed back.