morc Posted December 13, 2008 Report Share Posted December 13, 2008 Hey Flo, adding a function to run/install the downloaded/selected app/setup would be nice, too :-) Greetz with Beatz, Morc Link to comment Share on other sites More sharing options...
floele Posted December 13, 2008 Report Share Posted December 13, 2008 You can actually do this manually if you like (by using the commands options). But this is not the kind of feature I would like in Ketarin, because it's a completely different task Link to comment Share on other sites More sharing options...
k4mz Posted December 14, 2008 Report Share Posted December 14, 2008 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 More sharing options...
floele Posted December 14, 2008 Report Share Posted December 14, 2008 Just enter the commands in the text fields. I can't tell you what commands to enter, you'll have to check the documentation of your unzip applications. Link to comment Share on other sites More sharing options...
FranciscoR Posted December 14, 2008 Report Share Posted December 14, 2008 I would also like to be able to run 7-zip to unpack zip or rar files after download. 7z x d:\programas\{file}.zip -od:\ -y I have inserted this command in "Execute command after downloading" field, however nothing is executed after download. My 7-zip command-line utility is located at d:\7z\. Link to comment Share on other sites More sharing options...
floele Posted December 14, 2008 Report Share Posted December 14, 2008 {file} contains the full path. So you shouldn't wrap the other stuff around it. Link to comment Share on other sites More sharing options...
FranciscoR Posted December 14, 2008 Report Share Posted December 14, 2008 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 More sharing options...
FranciscoR Posted December 14, 2008 Report Share Posted December 14, 2008 But maybe this works with global variables...? I will try that ! Link to comment Share on other sites More sharing options...
FranciscoR Posted December 14, 2008 Report Share Posted December 14, 2008 Nope. Link to comment Share on other sites More sharing options...
floele Posted December 15, 2008 Report Share Posted December 15, 2008 Please try the latest version again (sorry for the weired Linux-like version number, but I'm not quite ready for 1.0 yet). Link to comment Share on other sites More sharing options...
FranciscoR Posted December 15, 2008 Report Share Posted December 15, 2008 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 More sharing options...
floele Posted December 15, 2008 Report Share Posted December 15, 2008 Could you maybe try to start an application with GUI so that you can see whether or not something is happening? Note that the command is only executed if there has actually been a new file. Link to comment Share on other sites More sharing options...
FranciscoR Posted December 15, 2008 Report Share Posted December 15, 2008 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 More sharing options...
floele Posted December 16, 2008 Report Share Posted December 16, 2008 Does this version make any difference? http://ketarin.canneverbe.com/downloads/Ketarin-test.zip Link to comment Share on other sites More sharing options...
FranciscoR Posted December 16, 2008 Report Share Posted December 16, 2008 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 More sharing options...
floele Posted December 16, 2008 Report Share Posted December 16, 2008 That's strange, because it really works well here. Maybe you can export an application which is not working for me? Link to comment Share on other sites More sharing options...
FranciscoR Posted December 16, 2008 Report Share Posted December 16, 2008 XML export ? Sure, are you sending me your e-mail ? I've tried running command with several portable apps, like Ccleaner, Clonespy, Erunt... all zip or rar files. I can do 1 XML with all of them or send you my database file, if you want. Link to comment Share on other sites More sharing options...
floele Posted December 16, 2008 Report Share Posted December 16, 2008 Just paste the XML string here, for a single application. Link to comment Share on other sites More sharing options...
FranciscoR Posted December 16, 2008 Report Share Posted December 16, 2008 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 More sharing options...
FranciscoR Posted December 16, 2008 Report Share Posted December 16, 2008 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 More sharing options...
floele Posted December 16, 2008 Report Share Posted December 16, 2008 What if you remove "7z" before the "x"? Keep in mind that for paths with spaces, you need to add "" around them. This is not necessary for {file} (will be done automatically). Link to comment Share on other sites More sharing options...
FranciscoR Posted December 16, 2008 Report Share Posted December 16, 2008 (edited) 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 December 16, 2008 by FranciscoR Link to comment Share on other sites More sharing options...
FranciscoR Posted December 17, 2008 Report Share Posted December 17, 2008 Hey flo, check out my latest command: del /s /q {dest}ccleaner\* || mkdir {dest}ccleaner\ & {7z}7z x {file} -o{dest}ccleaner\ -y It works flawlessly, I don't even need the -y switch anymore ! :cool: BTW, I'm using 0.9.9.10, not the test version, I thought you would like to know. Link to comment Share on other sites More sharing options...
floele Posted December 17, 2008 Report Share Posted December 17, 2008 Nice, thanks. Link to comment Share on other sites More sharing options...
FranciscoR Posted December 20, 2008 Report Share Posted December 20, 2008 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 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