Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2010
    Location
    Singapore
    Posts
    197

    Talking Unanswered: Windows Batch scripting

    Hello All,

    I am trying to write an windows batch for db2 to get few details from it, Also i would be using some of the OS level (windows) to get the permission and other details for which i have UNIXUTIL along side to use. Please let me know any good tutorials that i can use as a guide.

    DB2 V9.5
    Windows Server 2008

    Thanks in Advance.
    - Ananth
    DB2 DBA LUW
    "coming second, just means you are the first loser"

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    I would strongly suggest using PowerShell instead of batch. If you think of windows batch as a bash script, a PowerShell script is more like Perl. PowerShell has been provided with Windows since 2005.

    -PatP
    In theory, theory and practice are identical. In practice, theory and practice are unrelated.

  3. #3
    Join Date
    Aug 2010
    Location
    Singapore
    Posts
    197
    Thanks for your response Pat.

    I was looking to convert the shell script i have it for Unix envi. So thought it would be easy to do so. But i will take look at Powershell.
    - Ananth
    DB2 DBA LUW
    "coming second, just means you are the first loser"

  4. #4
    Join Date
    May 2014
    Posts
    24
    I started using Powershell since last month and I noticed the faster response in my code compared when I am using batch.


    Quote Originally Posted by Pat Phelan View Post
    I would strongly suggest using PowerShell instead of batch. If you think of windows batch as a bash script, a PowerShell script is more like Perl. PowerShell has been provided with Windows since 2005.

    -PatP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •