What's wrong here
Code: Select all
set "@Debug.on=set "@DNul=""
set "@Debug.off=set "@DNul=^>nul""
set "@TraceIn=call %%@DNul%% echo.hello world"
%@Debug.on%
%@TraceIn%
%@Debug.off%
%@TraceIn%
Code: Select all
>nul wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.
This seems to work but it isn't good enough, the '>' really needs to be inside @DNul.
Code: Select all
set "@Debug.on=set @DNul=con"
set "@Debug.off=set @DNul=nul"
set "@TraceIn=echo.hello >!@DNul!"
setlocal enabledelayedexpansion