I have downloaded digital files from my opencart server and they all have random extensions.
I need to be able to
Can anyone help with this. I had a go and it sounds simple but I failed
Hoping someone would be kind enough to knock up a quickie for me PLEASE!
			
			I need to be able to
- Chooser a directory.
 - Lists all files in that directory.
 - Renames each file by removing anything after .pdf (keeping the .pdf extension only).
 
Can anyone help with this. I had a go and it sounds simple but I failed
Hoping someone would be kind enough to knock up a quickie for me PLEASE!