Jump to content
Ketarin forum

shawn

Moderators
  • Content count

    937
  • Joined

  • Last visited

About shawn

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. shawn

    Running Self Extracting EXE from Ketarin

    "-spe" is a 7-zip switch that means "ignore root folder" or, more specifically "eliminate duplication of root folder for extract command." More about "-spe" here. Note the case MUST BE EQUIVALENT. "post commands" only run if the download actually happened. you may need to "force download" to cause them to run.
  2. shawn

    Could not create SSL/TLS secure channel

    you should also consider running this reg: REG ADD "HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319" /v "SchUseStrongCrypto" /t REG_DWORD /d 1 /f REG ADD "HKLM\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319" /v "SchUseStrongCrypto" /t REG_DWORD /d 1 /f
  3. version is a constructed variable for applications based on FileHippo and a manual variable for other applications. the same methods work to identify the available variables.
  4. shawn

    Remove previous folders

    Are you saving the file with the original file name? Yo could save them with just the version (since they're all win32 you don't need "-hash-windows-x86"). Saving with just the version number would allow you to skip this issue. If you'd rather do it post-extract then you can use powershell with something like this: Get-ChildItem $Path | Where{$_.Name -Match "<RegEx Pattern>"} | Remove-Item This would look something like this in practice: Get-ChildItem "k:\_ketarin\builds\pcsx2" | Where{$_.Name -Match "pcsx2-v[\d\.]+-dev-\d+-[a-z0-9]+-windows-x86"} | Remove-Item You could also use something much simpler if you want to trim it down a bit: Get-ChildItem "k:\_ketarin\builds\pcsx2" | Where{$_.Name -Like "pcsx2-v*"} | Remove-Item Or if you want to delete all of them but exclude the current build you could use: Get-ChildItem "k:\_ketarin\builds\pcsx2" | Where{$_.Name -Like "pcsx2-v*"} | Where{$_.Name -NotLike "pcsx2-v{version}*"} | Remove-Item
  5. shawn

    Running Self Extracting EXE from Ketarin

    Another option where root folders are using version numbers (as is the case with DDU) in the root folder is to rename the destination folder before unzipping and then rename it back to the generic version when finished. move "\Ketarin\Drivers\DDU" "DDU v{version}" 7z -spe ... move "\Ketarin\Drivers\DDU v{version}" "DDU"
  6. shawn

    Running Self Extracting EXE from Ketarin

    IF it was distributed with a "root folder" then you might be able to use the "-spe" feature of 7zip to ignore it. Give it a try and see if that works. Sometimes renaming the downloaded file to what would be the root folder will allow -spe to work even in situations where it otherwise fails. More about that issue here.
  7. shawn

    Zip password

    be sure to escape special characters if it doesn't work as is. this means that characters like %, &, !, and ^ should be preceeded by a ^. this is necessary for pw mgmt stuff from nirsoft, for example.
  8. shawn

    Running Self Extracting EXE from Ketarin

    have you just tried the 7z app with an output folder? 7z x -y -o"{root}PATH\" "{file}"
  9. glad you got it sorted
  10. 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.
  11. 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.
  12. Sweet. Here's the official page for MEGAcmd
  13. the documentation suggests that megacmd can not access publicly shared documents - only the files within your own account.
  14. 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
  15. shawn

    rd command wildcard support

    that's exactly how i would work around the problem
×

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.