You are not logged in.
Pages: 1
Greetings,
I would like to direct the output from one command into another. I tried this:
dir /a-d /b | findstr /c:"File Not Found"
However, error messages ("File Not Found") are not redirected into the second command (findstr).
I thought maybe this would help:
2>&1
I just don't know where I would put it.
Thanks,
Shane.
Windows 10 Home 64-bit
Offline
dir /a-d /b 2>&1 | findstr /C:"File Not Found"
Windows Shell Scripting and InstallShield
Offline
Thanks. I'm trying it now.
Windows 10 Home 64-bit
Offline
Pages: 1