>nul, not a valid command
Posted: 01 Jul 2011 03:08
☺
What's wrong hereoutput:
Meaning, not a valid command. Think I'm going crazy
This seems to work but it isn't good enough, the '>' really needs to be inside @DNul.
I've tried everything I can think of, I'm running out of ideas...
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