Jump to content
Ketarin forum


  • Content count

  • Joined

  • Last visited

Everything posted by shawn

  1. Yes, this is all pretty much what you'd be typing at a command prompt. Maybe what you're after is robocopy or xcopy to overwrite only the older files from the archived copy to the new copy? Assuming you're running a backup first. Something like this: move "C:\Program Files\Launchbox\Emulators\Dolphin\Updates\Dolphin" Dolphin-backup "{7z}" x "{file}" -o"C:\Program Files\Launchbox\Emulators\Dolphin\Updates" -y move "C:\Program Files\Launchbox\Emulators\Dolphin\Updates\Dolphin-x64" Dolphin robocopy "C:\Program Files\Launchbox\Emulators\Dolphin\Updates\Dolphin-backup" "C:\Program Files\Launchbox\Emulators\Dolphin\Updates\Dolphin" /w:1 /r:1 /e /xo del /s /q "C:\Program Files\Launchbox\Emulators\Dolphin\Updates\Dolphin-backup\*.*" rd /s /q "C:\Program Files\Launchbox\Emulators\Dolphin\Updates\Dolphin-backup" The above *should* rename the original Dolphin folder to Dolphin-backup, extract to Dolphin-x64, rename Dolphin-x64 to Dolphin, copy your preferences and the files that are newer (such as cache files) from Dolphin-backup to Dolphin, then purge and remove Dolphin-backup. Untested, but should work.
  2. shawn

    automated script versions

    Most variables are independent to each individual app profile, so it's impossible to know them all in advance if you're using any third-party app profiles or were...uh..."less consistent" in previous apps you created for yourself. Those variables can be obtained by looking at the values in app properties, variables, or a copy & paste from the specific app profile to notepad, then looking for any items in Variables/item/key/string. Some others are listed at Special Variables on the wiki. Even more can be found with the powershell samples at the bottom of this.
  3. Sweet. Here's the official page for MEGAcmd
  4. the documentation suggests that megacmd can not access publicly shared documents - only the files within your own account.
  5. okay - so the problem is that the distribution packages it all in a "Dolphin-x64" subfolder. This is called a 'root folder' in distribution terms and would normally be bypassed by using the "-spe" parameter of 7-zip. Unfortunately, the download file name is inconsistent with the spe behavior, and my attempts to make it work have failed. I am not operating at 100% right now, so my recommendation would be to continue with the renaming procedure you're using right now. Almost. Use this variation instead: ren "C:\Program Files\Launchbox\Emulators\Dolphin\Updates\Dolphin-x64" Dolphin
  6. shawn

    rd command wildcard support

    that's exactly how i would work around the problem
  7. shawn

    automated script versions

    are you seeing a new version in Ketarin that is not being installed with the Ketarin setup routines when using the Update and Install method? are you using the "use the following variable as indicator for changes" filter (such as "version") to identify new versions? are you using the "update all and install updates" option from the download list?
  8. What is your ultimate goal in steps 1 through 3? Are you trying to only extract a portion of the files, or are you trying to exclude only that one folder, or are you trying to accomplish something else? The syntax in step one can be adjusted to exclude the Dolphin-x64 folder by adding -x"Dolphin-x64" thus eliminating the need for steps 2 and 3. You could also use a second 7z call to extract only a portion of the contents with -i in order to effect step 2. The issues you might face, as this is extracting to the Program Files folder, is permission to write and propagation of permissions to the folder after the write. The "-y" in your 7z command means "overwrite". "7z vs uniextract vs winzip vs some other compression utility" is really a matter of personal taste and syntax. Other than that, there's very few differences in most compression tools today.
  9. shawn

    rd command wildcard support

    i've never used FixWin. are there subfolders below the versioned folders? such as "\something\file.ext"? if not, then you can just extract the entire contents of the zip file into the FixWin folder, overwriting with new data. your first post-download command should be doing that already: 7z e "{file}" -o"{root}SyMenu\ProgramFiles\FixWin" -y that said, you could always use a for loop to do it instead: for /f "delims=" %%d in ('dir "{root}SyMenu\ProgramFiles\FixWin" /s /b /ad ^| sort /r') do rd "%%d" or robocopy: ROBOCOPY "{root}SyMenu\ProgramFiles\FixWin" "{root}SyMenu\ProgramFiles\FixWin" /S /MOVE good luck!
  10. the command would be something like: 7z x -y -o"F:\Program Files\JDownloader\Updates" "{file}" *.exe *.dll Note that "{file}" is a "Special Variable". There's more about those on the Wiki. As for downloading from Mega - I've personally never had a need. That said, if you can't find a standard link then you might want to try opening the URL with PowerShell in a script to see if that allows the contents to load correctly. If so, you can parse the URL and even download it from there. Another option is to use aria2, which is amazingly effective at various download services, including torrents. I tried the URL above though and it didn't work.
  11. shawn

    unexpected error occurred on a send

    Unfortunately, you need to be careful with sourceforge these days. They've become far less reliable over time. https://twitter.com/sfnet_ops
  12. shawn

    Zemana Antimalware Portable

    the easiest way would probably be via Bleeping Computer. here's a template for FRST which you can modify for Zemana. <?xml version='1.0' encoding='utf-8'?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="53a53f35-4107-4b23-acd2-2aa1f0f8088c"> <Category>Security</Category> <WebsiteUrl /> <UserAgent /> <UserNotes /> <IgnoreFileInformation>false</IgnoreFileInformation> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator /> <HashType>None</HashType> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer /> <SetupInstructions /> <Variables> <item> <key> <string>download</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>"\d+;\surl=([^"]+)"</Regex> <Url>http://www.bleepingcomputer.com/download/farbar-recovery-scan-tool/dl/82/</Url> <Name>download</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>Textual</VariableType> <Regex /> <TextualContent>{yyyy}{MM}{dd}</TextualContent> <Name>version</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <ExecuteCommandType>Batch</ExecuteCommandType> <ExecutePreCommandType>Batch</ExecutePreCommandType> <SourceType>FixedUrl</SourceType> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <TargetPath>..\{category}\{appname:regexreplace:([\s\t\r\n\-\\&amp;\/]+):_}-{version}.{url:ext}</TargetPath> <FixedDownloadUrl>{download}</FixedDownloadUrl> <Name>FRSTx64</Name> </ApplicationJob> </Jobs>
  13. targetpath is not a required value - empty is a perfectly valid state. most people will use something more distinctive, but empty is ok.
  14. shawn


    Yes. There's a couple samples on form submission in the forum. Here's one. Here's another.
  15. shawn

    Reordering variables

    Turns out i dont have the rights to add someone to the wiki. @floele can you please add @efors to the wiki?
  16. shawn

    How To Install Files From Ketarin

    Short answer, yes. There's a tab (Setup) in the app properties for you to create and tailor setup instructions for each individual application. There are many examples in the forum here, and more on the wiki here, and more on the Unattended page here. Ask us for help with specific apps and we're happy to help here, too. To help with a specific download we typically need to see what the site or download is. The simplest solution is to add a pre-download command that just issues a delay. This is easy in powershell with the following (which will wait 10 seconds before proceeding): Start-Sleep -s 10 To use this go to the Commands tab then change the language to PowerShell in the first drop-down box. Finally, paste the code above into the top box ("execute the following commands before downloading").
  17. shawn

    mydigitallife error 520

    have you tried changing the user-agent to a standard string such as "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"?
  18. shawn

    Reordering variables

    @efors, I agree. I'll try to make the time to do that in the next few weeks. If you're up to doing it yourself you can be granted access to edit the wiki.
  19. shawn

    Variable List options

    thank you!
  20. shawn

    Close Log with ESC / STRG-L

    correct. the latest build does add hotkeys for other behaviors, so it should be possible to configure these as well (once it's added to the interface).
  21. Hi, Flo! I don't expect this to be easy, since the current data structure only really leaves the place for one "previous" location. However, I'd like to be able to keep "recent" copies of certain applications, while having Ketarin automatically prune older versions. This would function as a number assignment instead of true or false. More like a "keep previous" than "detele previous" downloaded file. The number would indicate how many previous versions you want to keep, defaulting to 0 (=only current). I could configure it as 3, for example, and that would keep the current version, plus three prior versions. In the specific case I need it for, iPhone iOS, a setting of "3" would preserve iOS 4.3.4 (current), and iOS 4.3.3, iOS 4.3.2 and iOS 4.3.1. Since these files can be huge (700mb/ea), it's important not to waste any more space than necessary, and the current option (delete previous) is either on (always delete previous versions) or off (manually remember to check the folder once in a while to delete older versions).
  22. shawn

    Extend "delete previous" behavior

    I like the way aria2 does it -- basically the same as linux log rotation where the files are bumped "name.1.ext" to "name.n.ext" where n is the limit of copies you wish to maintain.
  23. shawn

    Persistent status column value

    the ability to track specific pre-download and post-download events already exists. there's a relatively recent thread (about 3 or 4 months maybe?) that demonstrates the ability to add a LastUpdated variable that is updated automatically after an update is downloaded. perhaps a better solution is to add error handling as a Command (like pre-download/post-download) that can run on-error. this would allow better automation to address issues that are discovered. @floele - what do you think?
  24. shawn

    Variable List options

    @floele, can we get a tab to that page added to the forum? I tried to find the link the other day and just couldn't find it.

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.