Avatar of Mohammed Hamada
Mohammed Hamada
Flag for Portugal

asked on 

Batch file to check certain word in a folder full of files (Reports) and copy them to a different folder on the network

Hello Experts

I need a batch file that would check for the word (HP) in a folder full of daily reports, the batch would check inside of every file if there's a word HP . if its found, the batch will copy the file to a different folder that's publicly shared on the network.

This should happen on daily basis.

The folder path if requested is (C:\1-WebServices-1\DeviceUpdateLogs\Server\Audit\imageUpdates)

The Public folder is c:\PublicFolder.

Would appreciate your help.

Thanks
Microsoft DOSWindows BatchPowershell

Avatar of undefined
Last Comment
Mohammed Hamada

8/22/2022 - Mon