The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,835 other subscribers

A source for many batch-file tricks: ghidra/launch.bat at master · NationalSecurityAgency/ghidra

Posted by jpluimers on 2026/05/20

If you want to improve your batchfile-fu, this might be your start: [Wayback/Archive] ghidra/launch.bat at master · NationalSecurityAgency/ghidra

After a quick look, I already recognised these tricks:

  • ^<
  • %%#
  • %~
  • set "SUPPORT_DIR=%SUPPORT_DIR:~0,-1%"
  • "%SUPPORT_DIR:!=%"=="%SUPPORT_DIR%"
  • set /A INDEX=!INDEX!+1
  • if %INDEX% geq 6 goto continue1
  • java -version >nul 2>nul
  • for /f "delims=*" %%i in
  • %SystemRoot%\System32\timeout.exe /NOBREAK 1 > NUL
  • exit /B %ERRORLEVEL%
  • ^(

Via:

Swift quoted this source code via [Wayback/Archive] Google Lens OCR:

[Wayback/Archive] Batch file from https://twitter.com/SwiftOnSecurity/status/1644002540810280964 (hope there are no typos)

–jeroen


https://gist.github.com/jpluimers/fa7ad4154e6af2859b006a5f67cbdb16

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.