Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CommandLine execution problem

CommandLine execution problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpsysadmintutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    krishna_CP
    wrote on last edited by
    #1

    HI Gurus, Iam invoking my server from batch file. Iam trying to run six projects sequentially, But After three projects executed successfully, Windows Exception coming. Some times for every project Windows Exception coming. my Batch file is like this. DUCommandLine.exe -u sa -a sa -p DB2DB1 -s Rayalu -n 10 DUCommandLine.exe -u sa -a sa -p DB2DB2 -s Rayalu -n 10 DUCommandLine.exe -u sa -a sa -p DB2DB3 -s Rayalu -n 10 DUCommandLine.exe -u sa -a sa -p DB2DB4 -s Rayalu -n 10 DUCommandLine.exe -u sa -a sa -p DB2DB5 -s Rayalu -n 10 Individual projects iam able to run successfully. Can i get return value after execution of each project. Please guide me to fix this problem. Thanks, Krishna

    L K 2 Replies Last reply
    0
    • K krishna_CP

      HI Gurus, Iam invoking my server from batch file. Iam trying to run six projects sequentially, But After three projects executed successfully, Windows Exception coming. Some times for every project Windows Exception coming. my Batch file is like this. DUCommandLine.exe -u sa -a sa -p DB2DB1 -s Rayalu -n 10 DUCommandLine.exe -u sa -a sa -p DB2DB2 -s Rayalu -n 10 DUCommandLine.exe -u sa -a sa -p DB2DB3 -s Rayalu -n 10 DUCommandLine.exe -u sa -a sa -p DB2DB4 -s Rayalu -n 10 DUCommandLine.exe -u sa -a sa -p DB2DB5 -s Rayalu -n 10 Individual projects iam able to run successfully. Can i get return value after execution of each project. Please guide me to fix this problem. Thanks, Krishna

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Test the errorlevel[^] after each command to decide whether to continue. Your application should set this value in its exit() call or the return value from main(). You should also catch any exceptions and print a meaningful message to assist in diagnosing the problem.

      It's time for a new signature.

      1 Reply Last reply
      0
      • K krishna_CP

        HI Gurus, Iam invoking my server from batch file. Iam trying to run six projects sequentially, But After three projects executed successfully, Windows Exception coming. Some times for every project Windows Exception coming. my Batch file is like this. DUCommandLine.exe -u sa -a sa -p DB2DB1 -s Rayalu -n 10 DUCommandLine.exe -u sa -a sa -p DB2DB2 -s Rayalu -n 10 DUCommandLine.exe -u sa -a sa -p DB2DB3 -s Rayalu -n 10 DUCommandLine.exe -u sa -a sa -p DB2DB4 -s Rayalu -n 10 DUCommandLine.exe -u sa -a sa -p DB2DB5 -s Rayalu -n 10 Individual projects iam able to run successfully. Can i get return value after execution of each project. Please guide me to fix this problem. Thanks, Krishna

        K Offline
        K Offline
        KarstenK
        wrote on last edited by
        #3

        use for every instance an new console. "CALL ..."

        Press F1 for help or google it. Greetings from Germany

        K 1 Reply Last reply
        0
        • K KarstenK

          use for every instance an new console. "CALL ..."

          Press F1 for help or google it. Greetings from Germany

          K Offline
          K Offline
          krishna_CP
          wrote on last edited by
          #4

          HI Gurus, it is Throwing DOS Error code 1073741819 After finishing third Project. If i run 5 projects in 5 batch files then Individually all projects running successfully. Thanks Krishna

          K 1 Reply Last reply
          0
          • K krishna_CP

            HI Gurus, it is Throwing DOS Error code 1073741819 After finishing third Project. If i run 5 projects in 5 batch files then Individually all projects running successfully. Thanks Krishna

            K Offline
            K Offline
            KarstenK
            wrote on last edited by
            #5

            do you know that you can enter "help" in a dos window. The right command ist "START ..." :doh:

            Press F1 for help or google it. Greetings from Germany

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups