Search found 4 matches

by skylinekiller
18 Feb 2023 00:33
Forum: DOS Batch Forum
Topic: extract .7z subdirectories into the same folder of bat file
Replies: 5
Views: 6041

Re: extract .7z subdirectories into the same folder of bat file

That almost sounds like you entered it on the command line, rather than running the batch file. It's going to behave differently in each case. Alternately, did you accidentally type a third %? This is not the place for help with the 7zip application, but check what the command line switches being u...
by skylinekiller
17 Feb 2023 11:57
Forum: DOS Batch Forum
Topic: extract .7z subdirectories into the same folder of bat file
Replies: 5
Views: 6041

Re: extract .7z subdirectories into the same folder of bat file

Below is the code with the change you suggested. I guess where it extracts isn't as crucial as omitting the first directory when extracting and overwriting everything as it extracts. That's the main challenge getting it to extract the .7z from the second directory. for /F "delims=" %%I IN ('dir /b /...
by skylinekiller
17 Feb 2023 08:32
Forum: DOS Batch Forum
Topic: extract .7z subdirectories into the same folder of bat file
Replies: 5
Views: 6041

Re: extract .7z subdirectories into the same folder of bat file

Thank you for taking a look at it. I I make the change you suggested, It creates a folder in the same directory as .bat file called "%~dp0" and all the .7z files are extracted into that folder BUT it still extracts the parent folders of all the .7z files. I am trying to get it to OMIT the parent fol...
by skylinekiller
16 Feb 2023 19:03
Forum: DOS Batch Forum
Topic: extract .7z subdirectories into the same folder of bat file
Replies: 5
Views: 6041

extract .7z subdirectories into the same folder of bat file

I want to extract all the .7z files' subdirectories (skipping the parent directory) into the same directory as my bat file. If files/folders exist, it overwrites without prompting Example of now: │ extract.bat │ ├───Steven Folder │ Steven.7z (parent folder is Steven and has subdirectories of Picture...