Share via

Making Windows TShell Interactive for Executable Input Streams

2025-09-26T11:17:08.5366667+00:00

How can I modify the execd test.exe command used to run a test executable on a Windows DUT so that it supports interactive input during execution? Currently, execd runs the executable non-interactively, meaning I can't provide input while it's running. My specific use case involves reading user input using fgets(input, OPTION_SIZE, stdin) within the executable. Is there a way to enable or simulate interactive input in this scenario?

Windows development | Windows Driver Kit (WDK)
0 comments No comments

Answer accepted by question author

Anonymous
2025-09-29T10:35:36.0466667+00:00

Thanks for reaching out !

The execd command runs non-interactively, so fgets(stdin) won’t work. To enable input, try using TAEF's RunAs to run the test in user context, or simulate input using a batch script like (echo 8 & echo 1 & echo 0) | test.exe

Let me know if you need help setting that up.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.