I am running the following using Apache exec lib.
wmic LOGICALDISK GET Name,ProviderName /FORMAT
This command returns a listing of all the mapped drives and their mapping. When I run it from the command line, it works great. When I run it from within java, it returns the first 2 drives and 1 of the drives listed in the middle.
I've piped the stream to stdout, used stream gobbler, etc. I have several other commands I run that work fine and I read the streams without problem. I'm stumped. Any ideas? Encoding possibly? I've never had this problem before.
Oh, I've also run with ProcessBuilder, Runtime.exec, and DefaultExecutor. Same results throughout.
Thanks.