Jump to content
Ketarin forum
  • Announcements

The search index is currently processing. Activity stream results may not be complete.

All Activity

This stream auto-updates     

  1. Last week
  2. Donwload Help

    I couldn't edit my post so I made an account. To the info above, the site is: https://rpcs3.net/ I'm testing the software and give feedback but it's a pain to download the emulator everytime
  3. this is great, can we copy posts like this to wiki? Google didn't offer me this as a result, I went down the same path, but giving up sooner, when `$newVar = New-Object -TypeName Ketarin.UrlVariable` did Error. Ended up using .Clone, which was working, but only when app has at least one variable. Then I found this post and used it in this function: # Changes variable value: $app.variables.<var_name>, creates new if it doesn't exists # usage: changeVar "my_var_name" "value" function changeVar { param( [String]$Name, [String]$Value, [String]$Type = "Textual" #StartEnd or #Textual or #RegularExpression ) # Derived access property, ie. app.variables.$varnm.$varcnt $Prop = if ($Type -eq "Textual"){"TextualContent"}Else{"CachedContent"} if (!$app.variables.$Name) { # create new variable $newVar = New-Object -TypeName Ketarin.UrlVariable -ArgumentList $Name,$app.variables $newVar.VariableType = $Type $newVar.$Prop = $Value $app.variables.Add($Name, $newVar) $oldTC = $null } else { # changing existing value $oldTC = $app.variables.$Name.TextualContent $oldCC = $app.variables.$Name.CachedContent $app.variables.$Name.$Prop = $Value } # workaround 1 - Copy value to CachedContent property, # so it will show under Column in main UI if ($Type -eq "Textual") {$app.variables.$Name.CachedContent = $Value} # workaround 2 - Clear the TextualContent property, # I needed this once, but it was probably because of a broken jobs.db. # No value was showing under Column, if TextualContent wasn't empty #$app.variables.$Name.TextualContent = $null $app.Save() # --- Log function shrt ($s) { # shorten if too long $MAX_LENGTH = 30 if ($s.length -gt $MAX_LENGTH) {return $s.Substring(0,$MAX_LENGTH-3) + '...' } else {return $s} } if ($oldTC -eq $null) { Write-Host "* Created variable: $Name, of type [$Type]," } else { Write-Host "* Changed variable: $Name, of type [$Type]," Write-Host (" from: " + (shrt $oldTC) + " | " + (shrt $oldCC)) } Write-Host (" to: " + (shrt $app.variables.$Name.TextualContent) + " | " + (shrt $app.variables.$Name.CachedContent)) Write-Host " (showing: TextualContent | CachedContent)" } <# To dot-source file, with this function in Ketarin script: # avoid using absolute path, get Ketarin working folder $pathInclude = Join-Path $app.variables.ReplaceAllInString("{startuppath}") "Include" . "$pathInclude\Variables.ps1" #> to add date, as in Ambimind post, use: $date = Get-Date -UFormat %d-%m-%y changeVar "LastUpdate" $date # or: changeVar "LastUpdate" (Get-Date -UFormat %d-%m-%y)
  4. Donwload Help

    Hello! I just discovered Ketarin for a couple of software to keep it updated. Now I'm actually trying to get my first software ready but I keep getting an error. The problem is as follow: On the download page I can clikc on a button " For Windows Version number xxx.xxx.xxx" and it will lead to a download page with the version number in the url and some other stuff (like date and a code number which i cant place) From this page I have to click on the actual file to get it downloaded. How can i do this automatic by using Ketarin?
  5. New column in interface

    Isn't this why @rainroom can't see the value?
  6. How the Custom column should work with Textual variable? I used to be able to see value of a Textual variable under Custom Column added by a script, but only when I added the value also to CachedContent property. I was using sqlite for this. The value updated only after re-start, but it was working ok otherwise. Recently the whole Column showing my custom variable: "Current Version" remained blank and I thought this was broken by an update, but now I tried various old versions and the value is still not shown. I found an old jobs.db and the previous functionality returned, but the curious thing is, with the recent jobs.db, which wasn't showing my "Current Version", if I blank the TextualContent and keep only CachedContent, it will show it under the Column. I am doing this using PS: $app.variables.$Name.TextualContent = $null # "" works too I become quite certain that either I am doing something wrong, or this feature doesn't work for Textual variables. CachedContent is shown in Column, but TextualContent in UI > App > Edit > Variables > Textual content Shouldn't TextualContent be shown under Column for Textual variable? Could they maybe be interlocked for Textual variable type, to keep existing scripts functional?
  7. Yes, "$ Remote Tools" already exists. Adding the trailing backslash did not resolve the problem (i.e. no error messages received from the "Run" dialog, and the files were not copied to the intended directory) Thanks for the tip on the global variables. Will implement them after I get these copy commands to work. Harry Z
  8. Mahalo for the replies. Sorry for the delay in responding, but I did not receive a notification that there was a reply. I will test out your suggestions and provide an update. Harry Z.
  9. Earlier
  10. Create Log

    I double click the batch file Contains: @ECHO OFF start "" /wait G:\Home\Ketarin.exe /database=G:\Home\ home_apps /log=G:\Home\filename.log EXIT It loads the file, Ketarin opens, it creates a log file but the log file is empty. I leave Ketarin open for awhile in case too many apps, but it seems if I have 500 or 5 the log file is still empty. What am I missing here, can't be this hard. I also checked the log permissions and changed the permissions so its full control and not read only. It doesn't seem to make a difference if the file is home_apps or home_apps.db It creates the log file just nothing is written to it. I've also tested from a command prompt and elevated and same thing. Thanks for trying to help me.
  11. General tutorial for ketarin?

    the functions are regularly updated. a single walkthru couldn't possibly cover every feature, which is why the forum exists. the difference between "save to file" and "save in folder" is that in "save to file" you're explicitly giving the destination file a name, whereas in "save to folder" you're using the name of the downloaded file directly (some applications expect specific file names or patterns) as provided by the server.
  12. Create Log

    are you double-clicking the batch file or running it from a command prompt? have you tried running the command with full paths applied? (start "" /wait k:\Ketarin.exe /database=k:\home_apps /log=k:\FILENAME.log) please share the EXACT command line you're using as it appears in the batch file.
  13. you could also add "C:\Program Files\7-Zip\" to the path then just use 7z.exe
  14. im having difficulty understanding what ketarin can actually do and how to use it. for example, i have no idea what the "save to file" option does as opposed to "save to folder". i read through the wiki tutorial but its not very helpful at all, its actually annoyingly vague. i could go through all the posts in the "tips and tutorials" section of this forum but that would be way too tedious and still wont help me much. is the anywhere i can get a general walkthrough of all ketarins functions that explains it simply?
  15. Create Log

    I am running the command from a batch file Yes running the batch file from where Ketarin is located Database is in the same directory next to batch and ketarin Windows 10 Home No networks Standard process
  16. There is an option to set the number of parallel downloads and the timeout time. Open your settings by pressing CTRL+T, switch to Connection and modify the connection timeout delay and the max. number of parallel downloads according to your wishes.
  17. Aloha! Would it be possible to post the contents of the log file? Is $ Remote Tools an existing directory? Add a backslash \ to the end of your folder names and try it again. COPY /V /Y "D:\Haole Boy\$USB files and folders\$ Tools\Process Explorer\procexp64.exe" "D:\Haole Boy\$USB files and folders\$ Tools\$ Remote Tools\" COPY /V /Y "D:\Haole Boy\$USB files and folders\$ Tools\Process Explorer\procexpl.reg" "D:\Haole Boy\$USB files and folders\$ Tools\" COPY /V /Y "D:\Haole Boy\$USB files and folders\$ Tools\Process Explorer\procexp64.exe" "C:\Tools\" If the file path never changes and to keep the script area clean, you can use global variables. If you do not always want to write D:\Haole Boy\$USB files and folders\, you can shorten it to something like {haoleboy}. Open your settings (CTRL + T), switch to Global variables, create a variable called haoleboy, for example. Add D:\Haole Boy\$USB files and folders as value. If you want to use a script the next time, you can shorten it. COPY /V /Y "{haoleboy}\$ Tools\Process Explorer\procexp64.exe" "{haoleboy}\$ Tools\$ Remote Tools\" COPY /V /Y "{haoleboy}\$ Tools\Process Explorer\procexpl.reg" "{haoleboy}\$ Tools\" COPY /V /Y "{haoleboy}\$ Tools\Process Explorer\procexp64.exe" "C:\Tools\" Same for 7zip. Create a variable called 7z for example and set the value to C:\Program Files\7-Zip\7z.exe If you want to use 7zip the next time, then you can do it like this: "{7z}" x "{file}" -o"{file:directory}" -y
  18. I'm using Ketarin 1.8.7 on Windows 10 1703. I only use it for keeping my installation files up-to-date (don't install anything using Ketarin). For some of the applications, I need to copy one or more of the files to a couple of different locations on my machine (local drives, not a network drive). Here's what the "after downloading" commands look like: =================== "C:\Program Files\7-Zip\7z.exe" x "{file}" -o"{file:directory}" -y copy "D:\Haole Boy\$USB files and folders\$ Tools\Process Explorer\procexp64.exe" "D:\Haole Boy\$USB files and folders\$ Tools\$ Remote Tools" copy "D:\Haole Boy\$USB files and folders\$ Tools\Process Explorer\procexpl.reg" "D:\Haole Boy\$USB files and folders\$ Tools\$ Remote Tools" copy "D:\Haole Boy\$USB files and folders\$ Tools\Process Explorer\procexp64.exe" "C:\Tools" =================== When in the edit window, I can click 'Run' and I get a window message box saying that the script executed successfully. When I look at the various directories involved, I can see that the unzip command worked, but none of the following commands succeeded. I'm not sure if they are not actually executed or if they fail for some reason. If I "rem" out the first command, the 2nd command works, but the 3rd and 4th do not. Same if I 'rem' out the first 2 commands the 3rd works, etc. I've copied the 2nd - 4th lines into a .bat file and it executes the commands without an error, so I don't think I have a syntax problem. I'll be happy to collect whatever documentation you need, just tell me what and how to do it. Mahalo! (Thank You!) Harry Z
  19. Yeah, maybe they force limit based on country as well. Still got randomly disconnected from their server, but not as often as before. I also got new type of error: The server committed a protocol violation. Section=ResponseStatusLine happened just once, its gone on the next update checking. Is there any option to interval delay between update / update check globally or individually? I my case this error usually happened on batch update/checking, but not when I do it manually one by one in a certain time interval. Thanks a lot..
  20. this is one where you get to get creative. the URL is based on a constant prefix and suffix plus the version number, so instead of harvesting the link, build it. collect the version number into a variable named version with the following regular expression: >SQL Enlight ([\d\.]+)< then build the URL as: http://ubitsoft.com/downloads/sqlenlight_{version}.exe
  21. Tried a variety of approaches, and wondering if this is a simple process that I'm just not approaching correctly. http://ubitsoft.com/sql-enlight/download I want to parse out the download link, but it seems to be hidden in the ::AFTER block that is populated by the javascript button click, so I don't get any luck in parsing the raw html, or finding any POST request being sent. How would you extract out the exe version info to download from this site?
  22. It looks like this is a server-side limitation. I have the same problem with your imported XML. As soon as the downloads from this server are limited to a single download (see picture) everything works without problems.
  23. Windows 8.1 x64 Ketarin 1.8.8.0 beta This error happened a lot when trying to download httpd from apachelounge.com, but sometimes (randomly) it connected and successfully download the file. I've tried changing some setting, but nothing seems to work flawlessly, always random time out and transport connection error. Global connection setting set to 10s timeout, 1 parallel, 1 retries, 1 segment. This is the log and see attachment for the ruleset: 21/08/2017 9:11:44: Update started with 4 application(s) 21/08/2017 9:11:46: HTTPd - 32bit-vc15: Replacing {version} in 'https://www.apachelounge.com/download/VC15/binaries/httpd-{version}-win32-VC15.zip' with '2.4.27' 21/08/2017 9:11:46: HTTPd - 32bit-vc15: Using referer: https://www.apachelounge.com/download/ 21/08/2017 9:11:46: HTTPd - 32bit-vc15: Server source file: /download/VC15/binaries/httpd-2.4.27-win32-VC15.zip 21/08/2017 9:11:46: HTTPd - 32bit-vc15: Determined target file name: D:\Unduhan\Pengembang\httpd-2.4.27-win32-VC15.zip 21/08/2017 9:11:46: HTTPd - 32bit-vc15: Checking if update is required... 21/08/2017 9:11:46: HTTPd - 32bit-vc15: Update required, 'D:\Unduhan\Pengembang\httpd-2.4.27-win32-VC15.zip' does not yet exist 21/08/2017 9:12:36: HTTPd - 32bit-vc15: Failed, Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. 21/08/2017 9:12:46: HTTPd - 64bit-vc15 (sig): Failed, The operation has timed out 21/08/2017 9:12:57: HTTPd - 32bit-vc15 (sig): Failed, The operation has timed out 21/08/2017 9:13:07: HTTPd - 64bit-vc15: Failed, The operation has timed out 21/08/2017 9:13:07: Update finished Can anyone help figure out whats wrong with this? Thanks. httpd.xml
  24. Create Log

    @jokerfool, you didn't actually answer any of my questions or provide details about what happens when you run the commands i shared. change it to reference your actual database name and tell us what happens. if it doesn't work, please answer ALL of the following questions so we can help (if in doubt, provide more information than you think is necessary, not less): are you running it from a command prompt? a batch file? a shortcut? are you running the command from in the directory where ketarin is located, or is the ketarin.exe file stored in a different folder within the path? is the database file in the 'start in' or current directory? what are the 'start in' directory and current directory? have you tried running the command with full paths applied? (start "" /wait k:\Ketarin.exe /database=k:\home_apps /log=k:\FILENAME.log) what version of windows are you running? are network paths involved? is it being run as a standard process or elevated?
  25. Create Log

    So when I run that command this is what happens and yes the database is in the same directory as the exe I run the batch file, Ketarin opens, the cmd window closes, this file is created home_apps.db_2017-08-19.bak I close Ketarin and that's it. So nothing is exported to XML Nothing in the AppData folder I also don't get any file created ending in .log.
  26. Create Log

    The first command opens Ketarin, performs a database export as XML and closes Ketarin. The second command starts Ketarin with the specified database. Regarding your problem. Where is your database file located? Is your database in the same folder as the EXE? Does another database exist in %AppData%?
  27. Create Log

    Doesnt do anything, Ketarin opens then you close it and nothing, no log files appear.
  1. Load more activity
×