Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Batch file required

17 Jun 2017   #1
val5662

Windows 7 ultimate 32bit
 
 
Batch file required

Hi all...
Please help if you can.
I need a batch file to search inside over 100 rar and zip files and move them to a folder according to a year of a file inside.Here is what I tried last.....didn't work....
@ echo off
md 2016files
echo IN PROGRESS PLEASE WAIT
for %%F in (*rar,*.zip) do "C:\Program Files\7-Zip\7z.exe" l "%%F" | findstr /m /i /e "2016" >NUL && move "%%F" 2016files >NUL
echo rar files moved to 2016files folder successfully
pause
exit /b

Thanks!
Val


My System SpecsSystem Spec
.
Reply

 Batch file required




Thread Tools




Similar help and support threads
Thread Forum
Batch file required for moving rars and zips.
Batch File required to move rar and zip files to a folder according to the word car anywhere inside the archive. Here is what I have.It works in a test folder with 2 rars and 1 zip but when I put it in the folder with four hundred rars and zips,it creates the folder and just hangs at the "please...
General Discussion
Batch file required
Hi guys... Windows 7 Ultimate 32 bit is my OS. Please help....thanks! I need a batch file that is run once from inside the same folder called Config as an "options.cfg" file,part of the text is listed below.I need to change the unknown number that follows the "draw_distance" to the number shown...
General Discussion
Please help me with Batch, need manual input required see description
Hi there, I am trying to create a batch file which will use the command nbtstat-a and then request the IP of the user within the same line (e.g. nbtstat-a *please enter the target IP to lookup*) to look up the machine name of a computer on the network, the only problem is that i dont know how to...
General Discussion
How to run a batch file at logoff & some batch scripting help please
Hiya, I'd just like to run a simple batch file at logoff to backup some settings. I plan to use Robocopy, which is what i use to more thorough backups. Two questions: 1. How make it run by clicking Start > Shutdown? (i realise i could make a shutdown batch file and run it instead, but i'd...
Backup and Restore
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:37.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App