w10install/scripts/copy-executables.cmd
Michael H.G. Schmidt bf8146c5d9 defender tweaks
2024-11-19 13:17:59 +01:00

45 lines
894 B
Batchfile

@echo off
set TOOLS=%SystemDrive%\tools
set SOFTWARE=..\software
echo ####### %0 #######
rem ###################################
rem Windows Defender Exception ...
rem ###################################
echo disabling Windows defender for PATH [ %TOOLS% ] ...
powershell -inputformat none -outputformat none -NonInteractive -Command Add-MpPreference -ExclusionPath %TOOLS%
rem ###################################
rem MAIN loop ( copy .exe files ) ...
rem ###################################
for %%E in (
bfg.jar
pageant.exe
putty.exe
puttygen.exe
rufus.exe
tzedit.exe
rdp.exe
anydesk.exe
superuser.exe
isodownloader.exe
) do (
if NOT EXIST %SOFTWARE%\%%E (
echo WARNING: %SOFTWARE%\%%E not found!
) else (
echo copying %%E to %TOOLS% ...
copy /Y %SOFTWARE%\%%E %TOOLS%
)
)
echo ####### %0 #######