0

I have used the code posted on link Execute exe on remote machine and changed notepad location on the line info.Arguments = @"\\" + serverName + @" -i C:\WINDOWS\System32\notepad.exe"; ,but still throws error like "The system cannot find the file specified" ,any idea why this error is causing.My destination system is windows 2008 R2 server

peter
  • 8,158
  • 21
  • 66
  • 119

1 Answers1

1

There are two notepad.exe available in "C:\"

  1. In Windows directory like "c:\Windows\notepad.exe"
  2. In System32 directory like "c:\Windows\System32\notepad.exe"

If you want to access notepad.exe in the System32 directory then you want administrator credentials.

Suggestion: use "c:\Windows\notepad.exe" this one.

AustinWBryan
  • 3,249
  • 3
  • 24
  • 42
Niteen
  • 121
  • 13