How to determine if a file is executable?

前端 未结 6 1388
温柔的废话
温柔的废话 2020-12-21 01:36

I\'m writing a program that (part of what is does is) executes other programs. I want to to be able to run as many types of programs (written in different languages) as poss

6条回答
  •  我在风中等你
    2020-12-21 02:05

    if you are using .net than Process.Start do lot of things for you.

    if you pass a exe , it will run the exe.

    If you pass a word document , it will open the word document

    and may more

提交回复
热议问题