I will be consistently copying files from an external server to a local server. The file names are of the following format:
Example 1 Invoice MM500780 10 26 2012 3 52 15 PM.PDF
Example 2 Invoice PS100679-02 10 30 2012 9 31 35 AM.PDF
Example 3 Return RTN001116 10 26 2012 8 59 56 AM.PDF
I would like to rename all the files by trimming any characters after the second space (which represent the date and time). Files names should be:
Example 1 Invoice MM500780.PDF
Example 2 Invoice PS100679-02.PDF
Example 3 Return RTN001116.PDF
Is there anyway I could create a powershell file and run it via task manager?
Thanks for any assistance.