@echo off setlocal :: Ask for the encoded message input echo Enter the encoded message: set /p input= :: Ask for the shift value echo. set /p shift="Enter the shift value: " :: Pipe the input into nsdecode.exe with the shift value echo. echo Decoded message [Shift:%shift%]: echo. echo %input% | nsdecode.exe -s %shift% :: Pause for user to read/copy/paste output pause endlocal