Clart ClioSport Club Member Aug 26, 2014 #1 I need to create a dos batch file that will move text files that contain specific characters to another folder. Help please!
I need to create a dos batch file that will move text files that contain specific characters to another folder. Help please!
A Addicted Car Golf 7R w/ DSG Aug 26, 2014 #2 I'm pretty sure you can't inspect contents of files via the batch prompt, unless you have some third-party tools or use powertools. If it was similar filenames however I could help.
I'm pretty sure you can't inspect contents of files via the batch prompt, unless you have some third-party tools or use powertools. If it was similar filenames however I could help.
Clart ClioSport Club Member Aug 26, 2014 #3 I can probably get the file names renamed so they contain the text required to search for?
@ @Spoonie Aug 26, 2014 #4 Windows PowerShell can do this for you. Take a look on the web otherwise I will try and put something together later.
Windows PowerShell can do this for you. Take a look on the web otherwise I will try and put something together later.
G Gray Car M3 Touring Aug 26, 2014 #5 You could you use the 'Get-Content' cmdlet in Powershell to find characters you need. Once a list of the files have been compiled it should be easy to move them.
You could you use the 'Get-Content' cmdlet in Powershell to find characters you need. Once a list of the files have been compiled it should be easy to move them.
Clart ClioSport Club Member Aug 26, 2014 #6 not used powershell before. I've got the text in the filename now, don't think robocopy likes wildcards robocopy /e "\\gbred-ljs01\Applications\LJS\Landrover\Broadcast\VIN-F2\AT5_ATP_F2*" "\\gbred-ljs01\Applications\LJS\Landrover\Broadcast\ATP_F2" /mov
not used powershell before. I've got the text in the filename now, don't think robocopy likes wildcards robocopy /e "\\gbred-ljs01\Applications\LJS\Landrover\Broadcast\VIN-F2\AT5_ATP_F2*" "\\gbred-ljs01\Applications\LJS\Landrover\Broadcast\ATP_F2" /mov