ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

Need help with a Batch file



Clart

ClioSport Club Member
I need to create a dos batch file that will move text files that contain specific characters to another folder.

Help please!
 
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
I can probably get the file names renamed so they contain the text required to search for?
 
  340i
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.
 


Top