mazzthepianoman Posted January 11, 2009 Report Share Posted January 11, 2009 Using the following as a default command to execute on application updates produces a text file on your desktop of the applications that were updated. Just replace USERNAME with your username so it points to your desktop. I use this on a Windows XP Pro machine. ECHO {appname} >> "C:\Documents and Settings\USERNAME\Desktop\Updates.txt" I find this very useful because I now include the command line execution of Ketarin in a daily shutdown script for my machine. This way I am notified of new applications that are available. The script will continue to append the text file so you'll want to delete it after you have updated your applications. Link to comment Share on other sites More sharing options...
FranciscoR Posted January 11, 2009 Report Share Posted January 11, 2009 Interesting, I use dir {target}/o:e-s > {target}\dir1.txt to keep an updated list, sorted by extension and size, w/larger files on top, of all files in my download directory (overwriting previous contents). Another one I like, and I could be using if I had files organized by category (with specific folders) is tree {target}/f /a > {target}\dir1.txt tree "some_folder" /f /a gives you something like: Link to comment Share on other sites More sharing options...
FranciscoR Posted January 11, 2009 Report Share Posted January 11, 2009 (edited) @mazzthepianoman: I changed your command just a bit, to include the date & time of the downloaded file: echo %DATE% %TIME% {appname} >> {target}\Updates.txt Final script: dir {target}/o:e-s /s > {target}\List.txt & echo %DATE% %TIME% {appname} >> {target}\Updates.txt Edited January 11, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
CybTekSol Posted January 12, 2009 Report Share Posted January 12, 2009 @mazzthepianoman: I changed your command just a bit, to include the date & time of the downloaded file: echo %DATE% %TIME% {appname} >> {target}\Updates.txt Final script: dir {target}/o:e-s /s > {target}\List.txt & echo %DATE% %TIME% {appname} >> {target}\Updates.txt FranciscoR, I have done almost the same as your final script, but added {version} behind {appname} which allows me to easily disable those downloads that constantly update even though the version has not changed... which is annoying... Link to comment Share on other sites More sharing options...
FranciscoR Posted January 12, 2009 Report Share Posted January 12, 2009 Nice ! ... but what apps have that behaviour ? I don't have any... lucky me ! Link to comment Share on other sites More sharing options...
CybTekSol Posted January 12, 2009 Report Share Posted January 12, 2009 Nice ! ... but what apps have that behaviour ? I don't have any... lucky me ! Unfortunately, I have 4 or 5... but my database is now 400+ apps... I can live with that slight percentage! Link to comment Share on other sites More sharing options...
mazzthepianoman Posted January 18, 2009 Author Report Share Posted January 18, 2009 Yeah I don't do much scripting but I had a feeling what I did was scalable. With only about 30 apps, none affected by the always update bug, my script is good enough for me and popping the text file on the desktop lets me know in the morning right away what I need to update. I have Ketarin run automatically before shutdown at night while I am away from the computer along with jkdefrag, ccleaner, and JungleDisk backup to my Amazon S3 space. Link to comment Share on other sites More sharing options...
somerandomhash Posted February 11, 2009 Report Share Posted February 11, 2009 Excellent little tip but can you possibly help me figure out what I am doing wrong here, if I use: dir {target}/o:e-s /s > {target}\List.txt & echo %DATE% %TIME% {appname} >> {target}\{category}\Updates.txt the log shows the Updates.txt in the correct path (in the category folder) but does not actually write the file I get the first part of the Category name in the {target} with no file ext I tried to fiddle but am befuddled?? I would like to use this to keep a List.txt in the main download dir and then use 'something' to write an Updates to each category (which I imagine I would need to add to each application in the category) does that make sense?? Link to comment Share on other sites More sharing options...
FranciscoR Posted February 11, 2009 Report Share Posted February 11, 2009 (edited) I'd say you can use 2 commands =), but this is not really needed, dir {target}/o:e-s /s > {target}\List.txt as a "default command to execute after update", and echo %DATE% %TIME% {appname}_{version} >> {target}\{category}\Updates.txt as "execute command after downloading". {category} works as expected, 11-02-2009 22:52:35,46 WinRar_3.80 You can also replace {appname} with {url:basefile}.{url:ext} but I fail to see why first the command doesn't work for you; {target} for me is a global variable, not a pre-defined one, it's my download folder location. Edited February 11, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
somerandomhash Posted February 12, 2009 Report Share Posted February 12, 2009 Fathomed it duh, my folders have spaces when I tried it with path/to/folder it work flawlessly if I used path/to folder/ it fails would it be possible for you to advise how I can handle the spaces (as these are my Cats) or will it be easier to use single folders? Link to comment Share on other sites More sharing options...
CybTekSol Posted February 12, 2009 Report Share Posted February 12, 2009 Fathomed it duh, my folders have spaces when I tried it with path/to/folder it work flawlessly if I used path/to folder/ it fails would it be possible for you to advise how I can handle the spaces (as these are my Cats) or will it be easier to use single folders? Essentially, from the command-line or within batch files folders containing spaces have to be enclosed in quotes [ i.e. "C:\My Downloads" ] unless DOS (8+3) format is used, however, Florian addressed this within variables in a previous release. I cannot recall the details, however, I experimented with my configuration and figured out when they were needed (or not). My suggestion is to search the forum for this thread or play with it and see what works for your particular situation. UPDATE: As it turns out, I use quotes to define my variables that are used within the 'execute command' field within Ketarin. [ i.e. {home} = "C:\DownLoad\Latest DownLoads" and {logs} = "C:\DownLoad\Latest DownLoads\_Logs" ] Hope this helps. Link to comment Share on other sites More sharing options...
somerandomhash Posted February 12, 2009 Report Share Posted February 12, 2009 Fathomed it duh' date=' my folders have spaces when I tried it with path/to/folder it work flawlessly if I used path/to folder/ it fails would it be possible for you to advise how I can handle the spaces (as these are my Cats) or will it be easier to use single folders?[/quote']Essentially, from the command-line or within batch files folders containing spaces have to be enclosed in quotes [ i.e. "C:\My Downloads" ] unless DOS (8+3) format is used, however, Florian addressed this within variables in a previous release. I cannot recall the details, however, I experimented with my configuration and figured out when they were needed (or not). My suggestion is to search the forum for this thread or play with it and see what works for your particular situation. UPDATE: As it turns out, I use quotes to define my variables that are used within the 'execute command' field within Ketarin. [ i.e. {home} = "C:\DownLoad\Latest DownLoads" and {logs} = "C:\DownLoad\Latest DownLoads\_Logs" ] Hope this helps. You are a start m8 thank, command line is something I have long forgot but have been experimenting I have it working by simply adding an + in my cats for now but it's all good to know. Link to comment Share on other sites More sharing options...
CybTekSol Posted February 13, 2009 Report Share Posted February 13, 2009 You are a start m8 thank, command line is something I have long forgot but have been experimenting I have it working by simply adding an + in my cats for now but it's all good to know.You're very welcome! 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