×

Loading...

Topic

  • 工作学习 / IT技术讨论 / 求教高手: 怎样查找运行Windows程序命令行选项?
    怎样查找运行Windows程序命令行选项?

    很多时候我们可以从Start>Run>然后输入应用程序名,直接启动该程序。然而很多程序都有自己的选项,如IE如果没有参数时只按照显示Internet页面的缺省方式启动(即使我指定C:\),而不能显示成Tree和File共存的形式。在老的DOS程序下大多数程序只要在程序名后输入/?或/H都能列示出不同选项己简要说明,我怎样才能找到Windows程序的命令行选项说明?(如IE 5.0)
    • Hope some windows gurus cam enlighten us
      This is Jabber. I am very interested in this question. Hope Windows gurus can give us some instructions. Thank you in advance!

      In my impression, Java programmers always open an MS-DOS and then issue the commands. We seldom go to Start|Run.

      In MS-DOS, we Java guys can easily get a list of options for a command. For instance,
      if I don't know how to specify the options for a Java compiler, I can simply type in "javac". Then, we will be prompted with all the options.

      Likely, we can try "java", "rmic", "jar", "javap", "rmiregistry", ....
      The premise is that we have the right PATH
      variable. Otherwise, MS-DOS will complain
      saying "bad commands...".

      Novice's question is not a big one in Java development. But it is worth of discussion because we need to run other non-Java programms.

      I am looking forward to guru's contributions.
    • You'd run the REGEDIT or REGEDT32 to check the related options for appliction's default start value and change it to meet you requirement.
      • It is dangerous for "novices" to manupilate Windows registry.
      • My target is I don't have to change those default value. Lots of related IT tips will tell you some alternative way to run certain programs ( I know a lot). The question is "How can I find all those option by myself?"
        • I don't think there are any all-for-ever answers for your question
          本文发表在 rolia.net 枫下论坛It seems to me that both dinglingling and I have misunderstood you. Let me try to help clarify your question. I though you were asking how to know the OPTION parameters for a Windows application; dinglingling thought you were asking how to set default value for OPTION parameters. After I saw your explaination of your question, it suddenly occurred to me that your were asking for DIFFERENT ways to to run a Windows application. Is my quess right?

          You Windows application is presumably an
          executable file (We usually call it an .exe file).
          Generally, we have the following way to run it

          1) Open MS-DOS and issue a command
          ---needs have a right PATH

          2) Go to start|run

          3) double-click an icon on the desktop, if any

          4)Go to start|programmes|..., chose the right item using the mouse and release

          For 2) 3) 4), we cannot specify parameters such as input file names

          There is another way to run a Windows Application. As you install your applications such as IE, JBuilder, Adobe AcroReader,
          the system will associate with some file extensions. In such case, you can double-click files to bring up your application. For instance, if you have notepad, you can bring it up by double click a file with an extension .txt. Similarly, by double-clicking a .xml file you will wake up IE5.

          To know how many internative ways there are to run an application, we need accumulate experiences case by case.
          This is my impression. Moreover, I don't think we need know all things. One of my colleagues always use the mouse and
          seldom use the keyboard. This looks funny in my eyes but I have to show my respect to his
          habit.

          Recently, I used command on-line to run VC++ compiler to generate a .dll file. The command is lengthy and full of options.
          I wrote a Windows scripting file to complete the task. However, I do believe I can do the same thing using Visual Studio by configuring some project properties.
          But I don't have time to try that.


          I would be appreciated if you could explain your question in more detail. Usually, if a question is too short, there will be some ambiguities.



          Hope this can help.更多精彩文章及讨论,请光临枫下论坛 rolia.net
          • Jabber, thanks for your reply. However, I think I didn't clarify me clearly. I should use one example, say usually I can start IE in those several method you mention....
            Usually I want to create a shortcut for my IE application, (It's easy). But I need it more customized as my special requirement, say I want to the IE shortcut can lead me to my C:\Myfiles\Data, then even I change the shortcut command line to "IE C:\Myfiles\Data"(just example), but IE has it default display to show my directory in only files style rather than with tree and files. Apparently I can control the application behaviour with certain parameter, say "IE C:\Myfiles\Data /[Option]". My question is how can know those "Options"?