maniaq Posted August 23, 2005 Share Posted August 23, 2005 Can anyone explain me how to use this code7za.exe a -r -t7z -m0=BCJ2 -m1=LZMA:d24:fb255:a2:lc7:mf=bt3 -m2=LZMA:d19:fb128:a2:lc0:lp2:mf=bt3 -m3=LZMA:d19:fb128:a2:lc0:lp2:mf=bt3 -mb0:1 -mb0s1:2 -mb0s2:3 file.7z that there wouldn't included non needed files in the .7z file, for egzample, when i put a batch file with this code into the folder, where i want compress files, the code includes that batch file, also and the 7za.exe file but i have managed to get it out from there, by using this code in the batch file%systemdrive%\7za.exe a -r -t7z -m0=BCJ2 -m1=LZMA:d24:fb255:a2:lc7:mf=bt3 -m2=LZMA:d19:fb128:a2:lc0:lp2:mf=bt3 -m3=LZMA:d19:fb128:a2:lc0:lp2:mf=bt3 -mb0:1 -mb0s1:2 -mb0s2:3 file.7zso how do get rid of the batch file.maybe these is a special switch.tnx Link to comment Share on other sites More sharing options...
nakira Posted August 23, 2005 Share Posted August 23, 2005 Put that batchfile in a directory somewhere in the path (like \system32) and just call it from the folder you want compressed. Link to comment Share on other sites More sharing options...
maniaq Posted August 23, 2005 Author Share Posted August 23, 2005 Put that batchfile in a directory somewhere in the path (like \system32) and just call it from the folder you want compressed.<{POST_SNAPBACK}>ok, how do i call it? Link to comment Share on other sites More sharing options...
nakira Posted August 23, 2005 Share Posted August 23, 2005 Well, suppose you named it "7zcompress.cmd" and placed it into \system32, you would simply type "7zcompress.cmd" from the folder you want to compress.D:\somefolder>7zcompress.cmd{enter} Link to comment Share on other sites More sharing options...
maniaq Posted August 23, 2005 Author Share Posted August 23, 2005 Well, suppose you named it "7zcompress.cmd" and placed it into \system32, you would simply type "7zcompress.cmd" from the folder you want to compress.D:\somefolder>7zcompress.cmd{enter}<{POST_SNAPBACK}>should i use commnad promt or what, i don't understand Link to comment Share on other sites More sharing options...
nakira Posted August 23, 2005 Share Posted August 23, 2005 Yes.This was ,eamt to appear to be a command prompt "D:\somefolder>7zcompress.cmd{enter}" Link to comment Share on other sites More sharing options...
maniaq Posted August 23, 2005 Author Share Posted August 23, 2005 Yes.This was ,eamt to appear to be a command prompt "D:\somefolder>7zcompress.cmd{enter}"<{POST_SNAPBACK}>let me get this right, how it is going to be started over system32, if i'm not pointing it to system32.....???? sorry for the questions, but i'm aren't getting it Link to comment Share on other sites More sharing options...
nakira Posted August 23, 2005 Share Posted August 23, 2005 system32 is defined in the %path% variabletype "path" in a command prompt and you will see...PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys...(plus more)..If a program (or cmd file) isn't in the current directory when you try to execute it, Windows will search all the directories defined in %path% for that program. System32 happens to be the very first entry so Windows finds the cmdfile you placed there and executes it. Link to comment Share on other sites More sharing options...
maniaq Posted August 23, 2005 Author Share Posted August 23, 2005 (edited) system32 is defined in the %path% variabletype "path" in a command prompt and you will see...PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys...(plus more)..If a program (or cmd file) isn't in the current directory when you try to execute it, Windows will search all the directories defined in %path% for that program. System32 happens to be the very first entry so Windows finds the cmdfile you placed there and executes it.<{POST_SNAPBACK}>ohhhh, the light starts to shine for me nowthank yu wery much Edited August 23, 2005 by maniaq Link to comment Share on other sites More sharing options...
maniaq Posted August 23, 2005 Author Share Posted August 23, 2005 (edited) now i need to get that right click for running cmd windowsthank yu wery much again everything works great now Edited August 23, 2005 by maniaq Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now