lunatiq Posted March 20, 2022 Share Posted March 20, 2022 (edited) I have a batch for command line script that will convert files to 7z to compress but I'm not sure how to do directory of directories. Maybe someone can help. FOR /F "TOKENS=*" %F IN ('DIR /B /A-D "D:\Media\Roms\atari 2600"') DO 7z.exe a "D:\Media\Roms\atari 2600\New Folder\%~NF.7z" "D:\Media\Roms\atari 2600\%~NXF" Edited March 20, 2022 by lunatiq Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted March 21, 2022 Share Posted March 21, 2022 I think what you're wanting to do is zip up each folder into its own zip (.7z) file. Example: this batch file will take these 3 folders and create these 3 files Place the batch file inside the folder that contains the subfolders you want to zip. In my Example, the batch file would go inside the Games folder. for /d %%X in (*) do ( PUSHD "%%X" "c:\program files\7-Zip\7z.exe" a "..\%%X.7z" "*" POPD ) pause The "pause" at the end is optional. I put it there so that I can see that it's working, and 'worked' when completed (as in no errors). Quote Link to comment Share on other sites More sharing options...
lunatiq Posted March 21, 2022 Author Share Posted March 21, 2022 2 minutes ago, JoeViking245 said: I think what you're wanting to do is zip up each folder into its own zip (.7z) file. Example: this batch file will take these 3 folders and create these 3 files Place the batch file inside the folder that contains the subfolders you want to zip. In my Example, the batch file would go inside the Games folder. for /d %%X in (*) do ( PUSHD "%%X" "c:\program files\7-Zip\7z.exe" a "..\%%X.7z" "*" POPD ) pause The "pause" at the end is optional. I put it there so that I can see that it's working, and 'worked' when completed (as in no errors). This is exactly what I was looking for. 1 Quote Link to comment Share on other sites More sharing options...
richiewhit Posted April 5, 2022 Share Posted April 5, 2022 looking for after dark screen saver to run on windows 10 i miss it are go going to add a fix it soi that it can run after dark on newer windows???? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.