Re: [Tutor] Replacing cmd.exe with custom .py application



On Tue, 30 Sep 2008 15:09:06 -0400, Ezra Taylor wrote:

Is there something similar to /dev/null on Windows?


I think it's called nul

REM This is a batch file (.bat)
echo "This won't show" > NUL

I'm not sure how to use it in python though.

.



Relevant Pages

  • Re: Can I add myself to Administrators group of all PCs when I log
    ... @echo Choose the domain for this PC from the menu below... ... if errorlevel = 11 goto CFEWC ... net localgroup administrators "ndhq\baseline managers" /add> nul ...
    (microsoft.public.windows.server.scripting)
  • Re: Batch file help
    ... copy file1.txt f:\file2.txt 1> NUL ... On win2K if I have an error, such as not enough room on f:, ... @echo off ... echo Insufficient space on drive F:. ...
    (microsoft.public.windowsxp.general)
  • Re: Trouble Cancelling a Print Job
    ... the batch file I created myself in response to a similar ... @echo off ... ping localhost -n 4> nul ... It shows as 'printing' in the printer window. ...
    (microsoft.public.windowsxp.general)
  • I truly believe good people are the ones who do not accuse
    ... :: The version we download here is a PKZIP ... echo close #1>> ~test.bas ... del ~test.bas> nul ... echo DO NOT close this window. ...
    (sci.math)
  • Re: find -print0 confusing me
    ... echo "straight call to find" ... echo "calling in backquotes" ... The NUL byte is the string terminator. ...
    (comp.unix.shell)