![]() ![]() If the above doesn't work to capture the output from foo.exe to the text file, then there is another possibility. Try this: foo.exe>"c:\Program Files (x86)\something\test.txt" This is because when the OS is determining the file to redirect to, it will stop looking for the filename when it encounters an unquoted space: "c:/Program". When specifying a filename (or path) that contains spaces, you must surround it in double-quote marks ( "."). This typically happens when you try to redirect to a file using a | instead of a >. is not recognized as an internal or external command, operable program or batch file. 'c:/Program' is not recognized as an internal or external command, operable program or batch file. The error you are receiving is somewhat of a clue: I expect your command is something like this:Ĭ:\> foo.exe|c:\Program Files (x86)\something\test.txt If you show it in your question, it might be easier to find a solution for you. You haven't shown the command you are using that is failing.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |