| 1. |
Solve : How can one access an archive (.7z specifically) from a batch program?? |
|
Answer» How can one access an archive (.7z specifically) from a batch program. not your average simple batch code... Really? The commands look pretty similar to those for the Winzip and WinRar command line utils. For example to add all the text files in a folder to an archive called Files.7z... Code: [Select]7za.exe a -t7z files.7z *.txt Very simple indeed. ahhh, brings back memories of PKZIP and PKUNZIP switches... or maybe I should shudder, I don't know.Quote from: BC_Programmer on February 03, 2009, 02:51:11 PM ahhh, brings back memories of PKZIP and PKUNZIP switches... or maybe I should shudder, I don't know. I use rar.exe every day, and I have fond memories of LHarc, ARJ, ACE, etc. GUIs are for wimps. heh. one more problem. for some reason, after downloading the 7za.exe and designating the proper folder that its in, it STILL wont recognize the 7z (command) (switches) (archive name) (file names) command line. I'm working on an xp, but i dont think that should matter. any ideas? What do you mean "won't recognize"? Describe what happens. Give examples of code used and any error messages. If the folder has spaces in the name are you using quotes? Likewise for file names. Did you download the right package? And extract the executable? Are you running a 64 bit OS? Yes i downloaded that one. i was proud of myself for not just downloading the top one, which is usually standard protocol when downloading. I'm actually using the %* variable so that files can be just clicked and dragged into the program's icon, which is the equivalent of typing the file's full directory and name w/ file extension in quotes. i love that lil variable the only ERR i'm getting is sayin that "7z is not RECOGNIZED as a comand." 7z a -mx9 TheBox.7z %* thats the code they give on the web site posted above (someone else's post.) ......................... Ignore that. solved it. =) the command is 7za.exe, i thought i was mistaken cause i had tried 7z and 7z.exe. forgot the A. but thanks everyone. you all have been huge help, and if anyone ever wants help lemme know |
|