4 Replies Latest reply on Jan 18, 2007 7:57 AM by Robin Spinks

    $? In a Windows script?

      I want to check the return code from a command in my blpackage in order to decide whether or not to run the following command.


      As part of a web page deployment we are adding new versions of DLLs to the .NET GAC using gacutil.


      Before adding a new version of a DLL I need to check that version isn't already there, so that any rollback will not remove it.


      The command to check if the version is already installed is:



      gacutil /l "<assembly>,version=<version>"

      I would like to follow this command with something like:


      if [ $? -gt 0 ]; then
      echo "Version of DLL Exists"
      exit 0
      <Install DLL to GAC>