- February 26, 2020
- Posted by: Syed Shujaat
- Category: Uncategorized
No Comments
I had one of my clients requested a script to move his X-Ray images from the SD card to his Cloud drive. I end up writing a quick script to create a folder per date/time to avoid overwriting the existing folder per day. This does the job without any issues.
$timestamp = Get-Date -Format o | ForEach-Object { $_ -replace “:”, “.” }
New-Item -Path C:\Test2\$timestamp -Type Directory
Move-Item -Path “c:\test1\*.*” -Destination c:\test2\$timestamp