Guest User

Untitled

a guest
May 30th, 2026
73
0
Never
5
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.34 KB | Source Code | 0 0
  1. (SET \n=^^^
  2. %= This defines an escaped Line Feed - DO NOT ALTER =%
  3. )
  4.  
  5. :: echo logText to both console and filepath in %logFile% if defined
  6. :: %LOG% [logText]
  7. SET LOG=FOR %%# IN (1 2)DO IF %%#==2 (%\n%
  8. IF DEFINED logFile CALL ECHO.!##!^>^>"!logFile!"%\n%
  9. CALL ECHO.!##!%\n%
  10. ENDLOCAL%\n%
  11. )ELSE SETLOCAL EnableDelayedExpansion^&SET ##=
  12.  
Tags: batch
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment