@echo off REM This script will ask the user for a name and sign either the file or all files in the current location REM Author: Cody Byers REM Date: 6/25/2024 REM Version: 1.0.0 setlocal enabledelayedexpansion if "%~1"=="" ( echo. echo Enter the file or wildcard to sign: set /p files="> " ) else ( set "files=%~1" ) cd C:\Users\vwork\Desktop signtool sign /tr http://timestamp.sectigo.com /td sha256 /fd sha256 /a !files! endlocal