Expert Advice Needed : Migrating from 50 Batch Scripts to ??

Posted on 2007-07-26
Last Modified: 2010-04-16

I have a suite of approx. 50 batch files. On a high level, they have common functionality--e.g. copy dirs, handle IIS, etc. More scripts are forecasted in the future.

As I look beyond this Phase 1, I would like recommendations on how to combine these scripts in a Phase 2. For example, I want to include: error handling and a shared library of common procedures. (I know most scripting and programming languages support these.) This is a Windows-only solution, so something like PoSH might be a possibility.

Any ideas?

Question by:DataDesignIT
    LVL 19

    Accepted Solution

    i'd convert them all to vbs. but then again that is what i do.
    but since they are batch and they do their jobs, why not just add error handling to them.

    there is no easy answe to this question. you will have to do some work. if you provide a script we can convert it for you, or if you just want to run the scripts in order create a seperate batch script to do that.

    as far as error handling you can always add " >> results.txt" to most commands and then you will get the output in the results.txt file.
    LVL 3

    Assisted Solution

    Perl or Python?

    Both are great scripting languages.  I prefer Perl, but Python will do the job too.

    ActiveState Perl, in particular, I know can do Win32 API calls, file management, permissions management, OLE, and other stuff I haven't even looked at yet.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    This article will show, step by step, how to integrate R code into a R Sweave document
    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now