Index of /~paulfm/share/code/windows.bat

Icon  Name                    Last modified      Size  Description
[PARENTDIR] Parent Directory - [   ] _put_me_in_front.bat 2022-11-18 11:56 635 [   ] kill-unwanteds.bat 2022-03-05 17:16 1.7K [TXT] README.TXT 2023-11-28 17:36 1.8K [   ] showall.bat 2023-11-29 09:09 4.1K
		(this is README.TXT)

Copyright (C) 2021	Paul F. Markfort <paulfm.mn@gmail.com>
License:	GPLv3: https://www.gnu.org/licenses/



These are just some simple little .bat files to do different things.

_put_me_in_front.bat
	if run from a cmd.exe window, it will set focus to that window (without any clicking).
	Note, if you start a program, use sleep.exe 1 (or more) to make sure the other program started
	before calling _put_me_in_front.bat
	If you give it an argument - it puts that window in focus.
	(note, this also shows how to run a javascript file as a .bat file).

showall.bat
	A demonstration of using _put_me_in_front.bat.
	Walks the current directory tree and starts all the files in it,
	according to windows association rules.  Can be set to automatically
	show the next one after a short delay (using built-in choice.exe from windows).


kill-unwanteds.bat
	If run with admin rights, kills (in a reversable way - in case you change your mind)
	searchapp.exe, smartscreen.exe, EM.exe, telnet.exe and calc.exe
	(the last 4 are renamed *.e)
	You can edit the file to change what it does.

	Killing searchapp.exe disables desktop search (which also uses bing and the MS search service).
	(if you just kill searchapp.exe, it will just restart itself).

	smartscreen.exe is a security program for edge and IE and anything that uses MSHTML to block sites that Microsoft deems dangerous.
	It also (apparently) checks everything you download with any program. 
	It basically tells Microsoft everything you download (website, and/or filename and hash) and gets a report back
	from Microsoft servers as to if the file is safe to run.

	EM.exe doesn't seem to do anything.
	I have em.bat, calc.bat, and telnet.bat files I want to run first.
	(you can always run em.e, calc.e and telnet.e to run the originals).