DKNP
8 years agoOccasional Contributor
Running a batch file via Tested apps not working as expected
Hi
I am running a batch file that should disconnect me from the Virtual machine, however, when i run the batch file via tested apps i get a syntax error in the batch file.
The content is
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (
%windir%\System32\tscon.exe %%s /dest:console
)
The error is 'query' is not a recognized as an internal or external command, operable program or batch file.
When I run the batch file manually it works as intended. Also Testcomplete is running in administrator mode.
Any ideas?