Hello. I am new to PowerShell, and I hope someone can help me…
I Have a file on my server that I need to copy every night for backup. I can do the copy with a simple batch file, but the directory has 5 files from 5 previous days, so I cannot just copy all of the files daily or I will get duplicates, so I need to find the current file and do a network copy of only one file to a new location
The file name is complicated as you can see below. the current date is always embedded as you can see in the example below - 20220209
Can this be done with PowerShell? if so can someone help me do this?
thanks for any help or pointers