Skip to content

Instantly share code, notes, and snippets.

@TTTPOB
Created July 8, 2024 03:40
Show Gist options
  • Save TTTPOB/23d35fbaba38735c1dbecaee162d94ba to your computer and use it in GitHub Desktop.
Save TTTPOB/23d35fbaba38735c1dbecaee162d94ba to your computer and use it in GitHub Desktop.
restart snipaste, useful when you swtich between screen configs
Set objShell = CreateObject("Shell.Application")
' Kill snipaste.exe
objShell.ShellExecute "cmd.exe", "/c taskkill /f /im snipaste.exe", "", "runas", 0
' Start snipaste.exe, adjust the path as necessary
objShell.ShellExecute "Snipaste.exe", "", ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment