Batch file question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ronald S. Cook

    #1

    Batch file question

    I have a .bat file that looks like this:



    Regsvr32 "C:\Whateve r."

    Regsvr32 "C:\Whateve r2."

    Regsvr32 "C:\Whateve r3."



    And so it prompts be with a dialog box after each runs and I have to click
    OK for each one.



    How can I have it not prompt me?



    Thanks,

    Ron




  • Dean

    #2
    Re: Batch file question

    Run RegSvr32 /? for a list of command line options. The option you
    want is /s e.g.

    RegSvr32 /s Whatever.dll

    Comment

    • Phill W.

      #3
      Re: Batch file question

      Ronald S. Cook wrote:
      Regsvr32 "C:\Whateve r."
      .. . .
      >
      And so it prompts be with a dialog box after each runs and I have to click
      OK for each one.
      >
      How can I have it not prompt me?
      regsvr32 /s "whatever"

      Most DOS-style commands also support the "/?" argument, that displays a
      summary of how to use them. Usually this just get printed as output in
      the DOS box but, annoyingly, regsvr32 pops up a dialog box instead.

      HTH,
      Phill W.

      Comment

      • Matt F.

        #4
        Re: Batch file question

        Running regsvr32 /? from the command line might give a hint.

        Did you try the /s switch?

        "Ronald S. Cook" <rcook@westinis .comwrote in message
        news:eehAwyopGH A.220@TK2MSFTNG P05.phx.gbl...
        >I have a .bat file that looks like this:
        >
        >
        >
        Regsvr32 "C:\Whateve r."
        >
        Regsvr32 "C:\Whateve r2."
        >
        Regsvr32 "C:\Whateve r3."
        >
        >
        >
        And so it prompts be with a dialog box after each runs and I have to click
        OK for each one.
        >
        >
        >
        How can I have it not prompt me?
        >
        >
        >
        Thanks,
        >
        Ron
        >
        >
        >
        >

        Comment

        Working...