My.Computer.FileSystem.RenameFile("C:\j\WindowsApplication1.exe", String.Format("{0}.exe", Path.GetRandomFileName().Replace(".", String.Empty)))
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) End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)