Jump to content
Ketarin forum

&& not doing anything


bytedead
 Share

Recommended Posts

Been using this app for a while now but have never been able to get more than one command to work. Specifically... del command. I would appriciate it if someone could help me out with this.

 

example: memtest.zip

command after d/l:

7z x {file} -o"{root}\{category}\" -y &&
del /f "{root}\{category}\manual.html"

 

If I use "&&", nothing gets extracted. If I use &, extraction works but still does not deleted the file "manual.html".

Link to comment
Share on other sites

Hi,

 

I don't know why && doesn't work, but did you try without? I never use it when having multiple commands to launch and everything run fine.

 

If when using & you have trouble, this is because using it causes Ketarin to not wait for the command termination to process and launch the next one. Thus, the del line is executed before manual.html gets extracted.

 

Actually, the best in your case is to simply use 7z built-in filtering feature:

7z x {file} -o"{root}\{category}\" -y -x!manual.html

Edited by andreone
Link to comment
Share on other sites

Thank you andreone! The "-x!*" works great and I am using that intead of del.

 

Also figured out my problem with del... 2 too many "\". I should have mentioned that I am running it from a thumb drive.

 

before: shows up as "del L:\\*" in log

7z x {file} -o"{root}\{category}\" -y
del /f "{root}\{category}\Eula.txt"

 

working:

7z x {file} -o"{root}\{category}" -y
del /f "{root}{category}\Eula.txt"

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.