Jürgen Steinblock
Jürgen Steinblock

Reputation: 31743

Redirect console output to null in Windows CE batch file

Tricky thing

this works as expected under windows

ping localhost > nul

and redirects the output into nirvana.

But i am writing a batch script on a Windows CE 6.0 Device and the same call creates a file "nul". Is it possible to dismiss the console output in CE?

Update

This is the output after running dir * > nul twice in an empty directory

Directory of \flashdisk\test

06/13/13  15:35                      0 nul

Found 1 file(s). Total size 0 bytes.
1 Dir(s) 150664192 bytes free

Upvotes: 0

Views: 2442

Answers (1)

Jürgen Steinblock
Jürgen Steinblock

Reputation: 31743

This solution both works on Windows (7) and Windows CE
Just pipe the output to REM

ping localhost | REM

Upvotes: 2

Related Questions