To Access Notepad, calculator through asp.net

前端 未结 6 931
孤街浪徒
孤街浪徒 2021-01-23 15:47

I m trying to open Notepad, Calculator in button click in asp.net with code behind C#. I tried with the code

 System.Diagnostics.Process.Start(\"c:\\\\windows\\\         


        
6条回答
  •  情书的邮戳
    2021-01-23 16:13

    System.Diagnostics.Process.Start("C:\Windows\System32\calc.exe")
    

    Works fine, though you may have to adjust settings on your browser. Be sure calc.exe is in the directory.

提交回复
热议问题