I have a command such as "C:\Program Files\7-zip\7z.exe" x foo.7z -y
which will extract (with full paths) to the current directory.
What it does that I don't want, though, is to spool out the individual paths to stdout. This is information that I don't need.
However, on Windows, redirecting this to NUL (the equivalent of /dev/null
on Linux) a la "C:\Program Files\7-zip\7z.exe" x foo.7z -y > NUL
produces no unzip'd files, because 7-Zip seems to unzip to NUL instead of pushing the command text-output to NUL (which is what we want).
Actually, that command works from a Windows command shell (that is, it unzips the files as I want but without logging text to the console), but ir doesn't from TeamCity's agent execution within its command-line build-runner (that is, it unzips into NUL).
How do I get it to do the same thing within TeamCity (which is executing as a service)?