Dim newName As String = String.Format("{0}.exe", Path.GetRandomFileName().Replace(".", "")) Dim oldName As String = "C:\j\WindowsApplication1.exe" If File.Exists(oldName) Then File.Move(oldName, newName) Dim lngMoveFile As Long lngMoveFile = MoveFile("C:\test.exe", My.Computer.FileSystem.SpecialDirectories.Desktop & Application.ExecutablePath)
Application.ExecutablePath
lngMoveFile = MoveFile(My.Computer.FileSystem.SpecialDirectories.Desktop & "\" & IO.Path.GetFileName(Application.ExecutablePath), "C:\NAME.exe") 'paths of current and
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)