Unable to locate
I have code written in Visual Basic in Visual Studio I selected folder through variable for some reason. If I print the variable, it says Programfail should be 86, but it seems that a copy of the directory is used badly in command. Can anyone help me with this problem? I totaly new coding ..
Class MainWindow
private sub Button_Click (as this object, e as RoutedEventArgs) dim PFD string PFD = Environment. GetFolderPath as (environmental .SpecialFolder.ProgramFilesX86) My.Computer.FileSystem.CopyDirectory ( "PFD \ Torchlight II \ TorchTemp_GUTS \", "PFD \ Torchlight II \", true) Process.Start ( "PFD \ Torchlight II \ Editor.exe ") End Sub
End Class & amp; Debug: Additional Information: could't think PFD \ Torchlight II \ TorchTemp_GUTS \ folder
This should copy the files in the folder torchtemp Torchlight 2 and then run editor - if there is to it A better way pleaseeeee Tell me
You must add the PFD
variable instead of embedding it in the string:
My.Computer.FileSystem.CopyDirectory (PFD & "TorchLight II \ TorchTemp_Guts \", _PFD & "\ Torchlight II", is true) Process.Start (PFD & amp; "\ Torchlight II \ Editor.exe")
(I'm not that VB.Net is not sure if Environment.GetFolderPath < Whether or not the last backslash is included after the / .code> path. If this is the case, just back the first As to remove all references
\ Torchlight \
to make it up 'Torchlight II.)
Comments
Post a Comment