Hello
We want to use a batch file to move files into a folder based on the last 4 digits (project #) of the folder proceeded by a dash.
Example folder path/name could be
O:\MT. Laurel - EMS Building - -Mt Laurel-9136
The user will enter the project # 9136.Thank you
does it need to be drag & drop? where is the folder i'm supposed to drop the files? (you can replace the user name with %USERNAME%)
We do not want to drag and drop. Looking for user to run a cmd/batch file that will prompt the user for the project # that will correlate with the folder name that the fill will moved into. The originating folder will always be the same.
Does it have to be a batch script?
Could use powershell:$Project = Read-Host -Prompt "Enter Project ID"
Get-ChildItem -Path "insert path here" -Recurse -Filter "*$Project*" | Copy-Item -Destination "insert path here"
This idea may work for us. Thank you!