Unable to run exe from System32 folder

S Abijith 471 Reputation points
2023-04-06T14:55:44.0666667+00:00

Hi All, We have a windows application built on .Net Framework 4.7.2. We are trying to run the below command from the application: 'cd C:\Windows\System32\OpenSSH' We get the error - 'The system cannot find the path specified'. If we try to run the scp executable using the below command: 'C:\Windows\System32\OpenSSH\scp' We get the error - ''scp' is not recognized as an internal or external command, operable program or batch file.'

But, if we run the same commands using CMD prompt, it executes perfectly fine.

Can anyone help us in executing the commands from the windows application. Any help is appreciated. Thank you!! Attached the code for reference.LocalShellIssue.txt

Developer technologies | C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2023-04-06T15:14:26.25+00:00
    0 comments No comments

Your answer

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