Search found 1 match

by spoutnik
03 Jun 2017 04:20
Forum: DOS Batch Forum
Topic: ReturnVar macro revisited
Replies: 30
Views: 32010

Re: ReturnVar macro revisited

[...] macro.rtnJeb.bat @echo off if not defined returnVar call :loadMacro&exit /b if "%~1" neq ":returnDisabled" exit /b %2 setlocal enableDelayedExpansion set "rtn=!%2!" set "rtn=!rtn:%%=%%3!" set "rtn=!rtn:""n=%%~L!" set "rtn=!r...