[Help]Delete Copies
Is there any way to make a program that can delete copies of the same file in a single folder and delete numbers before the file pm me the code if it is possible thanks.
I don't really understand your question. Please explain it with better English. Thank You.
You want to delete an application file which is running trying to delete itself?
You can't delete something that is in use. And don't ask for code... What about if you try urself first?
If you are actually trying to delete something on the folder, I advice you to have a look on System.IO Library, as i am not spoonfeeding you.
I think he simply wants to delete duplicate files in the same folder. If that's what you're aiming at, do what Brinuz said and consult the System.IO namespace (HINT: to see if the files have identical content, check the bytes)
As for removing a number from the beginning of a file...again the System.IO namespace is your best bet, or perhaps My.Computer.FileSystem, either way all you need to do is grab the current file name, use string manip to make it suit your needs, then rename the file to your new name.
Check in startup if a similar file exists, if so delete it....
Tips:
Application.executeablepath
io.file.delete
io.file.exists
using FileInfo, get all files in folder. MD5/SHA each file, and compare their hashes. If they are the same, delete on of them.