Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output redirection #2

Open
GoogleCodeExporter opened this issue Apr 15, 2015 · 5 comments
Open

Output redirection #2

GoogleCodeExporter opened this issue Apr 15, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Try running the command with output redirection

What is the expected output? What do you see instead?
Expect output in file but get error instead.
W:\Apps\WinHasher>1> filehash.txt M:\Apps\WinHasher\hash.exe -sha512 -base64 "M:
\Apps\WinHasher\cmdhelp.html"

W:\Apps\WinHasher>type filehash.txt

Computing SHA-512 of M:\Apps\WinHasher\cmdhelp.html...   0%
ERROR: No file was specified (the file path was empty, contained only white spac
e, or contained invalid characters).

WinHasher v. 1.6.0.43

or

W:\Apps\WinHasher>M:\Apps\WinHasher\hash.exe -sha512 -base64 "M:\Apps\WinHasher\
cmdhelp.html" > filehash.txt

W:\Apps\WinHasher>type filehash.txt

Computing SHA-512 of M:\Apps\WinHasher\cmdhelp.html...   0%
ERROR: No file was specified (the file path was empty, contained only white spac
e, or contained invalid characters).

WinHasher v. 1.6.0.43

What version of the product are you using? On what operating system?
1.6.0.43

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 15 Jun 2011 at 1:48

@codingMel
Copy link

and easy way to get rid of this issue would in fact be to remove a feature ;-)
simply by removing/bypassing the ConsoleStatusUpdater.cs feature for the terminal.

In fact, the percentage message is useful when working in command line as a terminal, but makes winhasher unusable in command-line-only.

Not showing the percentage but only the hash+filname as output (e.g. with a -v verbose flag) would also make command-redirecting/piping/logging/... possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants