r/Batch

Retro style Clippy desktop widget but inside a .bat file
▲ 9 r/Batch+1 crossposts

Retro style Clippy desktop widget but inside a .bat file

cleans recycle bin, deletes temporary files, tells jokes, opens notepad, and gives ya tips, maybe some other stuff but yeah.

whirlworks.itch.io
u/Ok_Party3688 — 1 day ago
▲ 11 r/Batch

BatEx: an open source tool to turn .bat/.cmd scripts into EXE apps

Hey everyone,

I made BatEx, an open source Windows app that converts .bat and .cmd scripts into .exe applications.

It is built with C#, .NET 8, and WinUI 3.

I wanted to make a cleaner and more modern alternative to tools like IExpress, with features like:

  • Show or hide the console window
  • Run the generated EXE as administrator
  • Add a custom `.ico` icon
  • Add file metadata
  • Choose x64, x86, or AnyCPU
  • Optional script obfuscation
  • Build log and conversion history

I would really appreciate feedback, bug reports, or suggestions.

GitHub:

https://github.com/TheYali1/BatEx

Download:

https://github.com/TheYali1/BatEx/releases

reddit.com
u/TheEZ45 — 3 days ago
▲ 2 r/Batch

Webex VDI Plugin (Un) Install

Hello,

I need help from the coding hive mind in here. I'm not entirely sure if this is the right r/ but I'm gonna give it a try.

I need to write a batch script which detects the current installed version of the webex vdi Plugin, uninstall if too old and install the new version.

My current script is supposed to check the registry key of Local Machine/software/windows/current version/uninstall/uuid and I use findstr to detect the version.

There I run into the first issue. It doesn't detect the version, therefore technically the script attempts to reinstall the Plugin every time it runs (every time the device starts).

I've confirmed that I've put in the correct reg key.

My second issue is that the Plugin won't install because it detects leftover components therefore saying the Plugin is already installed.

Apparently I cannot get a clean uninstall.

During my uninstall I delete the plugin folder in the program folders.

I also delete reg keys with previous uuids.

I have also tried running the webex removal tools, however they don't touch the Plugin.

Any ideas?

Note: I'm very aware there's proper software deployment tools and I would love to use them. However that isn't my decision to make, so I have to make do.

EDIT: added non-working code bits

finding version:

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C002B580-2B31-4EA7-86D9-2D561EA22285}" | findstr %DesiredVersion%

if %errorlevel%==1 (

goto NotFound

) else (

goto Found

)

next attempt:

set FoundVersion=

for /f "tokens=3" %%A in ('

reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall /s /f "Webex VDI" ^

/v DisplayVersion 2^>nul

') do set FoundVersion=%%A

if "%FoundVersion%"=="%DesiredVersion%" (

goto Found

) else (

goto NotFound

)

Uninstalling:

"C:\ProgramData\Package Cache\{4e86d392-a2eb-4e31-bbe3-b8eac67f8567}\WebexVDIPlugin_AllinOne.exe" /uninstall /quiet

timeout /t 2 >nul

echo %date% %time% Deleting previous MSI versions >> %logshare%%ComputerName%.log

for %%G in (

{DAEC7710-1501-4709-A780-F130ADD69012}

{AF0B84EE-3FBB-4839-8F5D-32FDDEE9276F}

{611AD18D-000D-4ABB-84FD-CC503FDE8EC6}

{6B6748ED-A496-5575-87CD-113C4F3C0FC4}

{ED197C61-4718-4A44-B1E1-4D79352126FC}

{F8531F7D-71C0-7E08-63DF-9D048E6C00DC}

{7B85311F-11B3-7B2B-5FE2-838098E7BC7A}

) do (

msiexec /x %%G /qn /norestart

)

reddit.com
u/ebie4366 — 3 days ago
▲ 6 r/Batch

where can i sell a batch script that can extract audio from video in multiple formats?

adding to the title, i have never done this before. like sold a digital program or product. the whole program is a batch script with many menus and options but i want to monetize it since its too easy and fast and small size, ONLY 10.5 KB so far. i am thinking to add many features related to audio and video functions, like subtitle extraction too

please advise. sample 2 screenshots added

u/interpolHQ — 7 days ago
▲ 3 r/Batch

A batch script that fixes mouse issues

Run this as admin:
taskkill /f /im explorer.exe

timeout /t 1 /nobreak

start explorer.exe

net stop hidserv

net start hidserv

gpupdate

sfc /scannow

dism /online /cleanup-image /restorehealth

powershell -Command "Get-PnpDevice -Class Mouse | Remove-PnpDevice -Confirm:$false"

shutdown /r /t 1

reddit.com
u/Successful_Test1825 — 10 days ago