Jump to content
Ketarin forum

Run downloads


morc
 Share

Recommended Posts

You can actually do this manually if you like (by using the commands options).

 

I too would like to be able to run or unzip downloads. I am interested in being able to script/batch these operations but I cant find any documentation for the use of the command options you have mentioned. It would be most useful!

 

Thanks!

Link to comment
Share on other sites

That was an example. What I'm using is something like this:

 

7z x d:\programas\atto_234.zip -od:\ -y

 

The problem I see is that Ketarin doesn't know where to locate the 7x.exe utility, but if I change command to something like

 

d:\7z\7z.exe 7z x d:\programas\atto_234.zip -od:\ -y

 

result is the same, nothing is executed.

Link to comment
Share on other sites

Thanks for update and sorry for all the trouble, but

 

d:\7z\7z.exe 7z x d:\programas\atto_234.zip -od:\ -y

 

still doesn't work for me; with windows command-line I have no problems running it.

 

 

I've also tried to create a global var, {7z}, with var value "d:\7z\7z.exe", and change command to

 

{7z} 7z x d:\programas\atto_234.zip -od:\ -y

 

or something like you suggested,

 

{7z} 7z x {file} -od:\ -y

 

without success.

Link to comment
Share on other sites

Note that the command is only executed if there has actually been a new file.

 

I'm aware of that, I'm deleting file prior to download/command execution.

 

Could you maybe try to start an application with GUI so that you can see whether or not something is happening?

 

c:\program files\winrar\winrar.exe

 

Nothing !

Link to comment
Share on other sites

Hello floele, I don't see the difference the betwen 0.9.9.10 and 0.9.9.10_test.

 

In both my 32-bit machines, Vista SP1 and XP SP2 (XP under virtualbox, without ANY real-time security) after download/update, both versions of Ketarin launch a cmd.exe child process. This new cmd.exe process uses 2mb of ram, but working set=peak working set and cpu cycles delta=0, so I think nothing is processed. Anyway, I've tried to load winrar and avp tool gui's but nothing is shown.

Link to comment
Share on other sites

In the meantime, I've been able to load winrar.exe just by adding quotation marks to command. But I am still unable to unpack files using previous 7-zip command. Ccleaner portable:

 

<?xml version="1.0" encoding="utf-16"?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="c89a67f9-7be7-433f-beaf-af2919b38d86">
   <DownloadBeta>Default</DownloadBeta>
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <HttpReferer />
   <Variables />
   <ExecuteCommand>"d:\7z\7z.exe 7z x {file} -od:\ -y"</ExecuteCommand>
   <Category>CD/DVD</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>D:\Programas\ccsetup214.zip</PreviousLocation>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2008-12-16T21:49:03.6308864+00:00</LastUpdated>
   <TargetPath>{target}\</TargetPath>
   <FixedDownloadUrl>http://www.ccleaner.com/download/builds/downloadbinportable</FixedDownloadUrl>
   <Name>Portable Ccleaner</Name>
 </ApplicationJob>
</Jobs>

Link to comment
Share on other sites

Believe it or not, I can only run 7-zip WITHOUT quotation marks.

 

This way, works perfectly:

<?xml version="1.0" encoding="utf-16"?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="c89a67f9-7be7-433f-beaf-af2919b38d86">
   <DownloadBeta>Default</DownloadBeta>
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <HttpReferer />
   <Variables />
   <ExecuteCommand>d:\7z\7z x d:\programas\ccsetup214.zip -od:\a -y</ExecuteCommand>
   <Category>CD/DVD</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation>D:\Programas\ccsetup214.zip</PreviousLocation>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated>2008-12-16T22:41:07.2428864+00:00</LastUpdated>
   <TargetPath>{target}\</TargetPath>
   <FixedDownloadUrl>http://www.ccleaner.com/download/builds/downloadbinportable</FixedDownloadUrl>
   <Name>Portable Ccleaner</Name>
 </ApplicationJob>
</Jobs>

 

Looks like almost everybody is doing sintax errors !

Link to comment
Share on other sites

It's solved now ! =D =D =D

 

7-zip sintax is 7z <command> [<switch>...] <base_archive_name> [<arguments>...]

 

The error I was doing was d:\7z\7z.exe 7z <command> (...); I have to supress 7z.exe.

 

Keep in mind that for paths with spaces, you need to add "" around them.
Yep, thanks !

 

I guess I only realised how Ketarin runs commands when I saw it launching cmd.exe. =)

Edited by FranciscoR
Link to comment
Share on other sites

Hello floele,

 

I've been wondering if it would be possible to make the "Execute after download" box a litle bit bigger, say with one additional line, because I'm running some very large commands like

 

del /s /q {7z}\* || mkdir {7z}\ & {uni} {file} %temp% && move /y %temp%\7z.exe {7z} && move /y %temp%\7z.dll {7z} && move /y %temp%\*.chm {7z}

 

that are getting cropped.

 

Also, don't you think it would be nice to have a enable/disable switch (with a checkmark for instance) on "Default command to execute" and "Execute after download" fields ? Right now, if temporarily I don't want to run anything, I have to delete command...

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.