You could use the File.Move method to rename the file before you open it:
System.IO.File.Move("C:\Users\hwai\Desktop\Capture\Example.jpg", "C:\Users\hwai\Desktop\Capture\1.jpg")
System.Diagnostics.Process.Start("C:\Users\hwai\Desktop\Capture\1.jpg")
Please remember to mark all helpful posts as answer to close the thread and then please start a new thread if you have a new question.
No comments:
Post a Comment