Putty

 avatar
unknown
batchfile
a year ago
426 B
3
Indexable
@echo off

setlocal enabledelayedexpansion


rem List of paths to check

set "paths=C:\Putty\putty.exe C:\temp\Putty\putty.exe D:\kits\putty.exe"


rem Loop through each path

for %%a in (!paths!) do (

    if exist %%a (

        echo Found putty.exe at %%a

        ren "%%a" putty.exe_insecure

        echo Renamed putty.exe to putty.exe_insecure

    ) else (

        echo Putty.exe not found at %%a

    )

)


endlocal
Editor is loading...
Leave a Comment