Results 1 to 2 of 2

Thread: Windows Batch script to read file

  1. #1
    Join Date
    Apr 2012

    Windows Batch script to read file

    Hi Experts,

    I have a requirement to read a text file line by line which will be like -


    Once i read the First line, I need to parse the line and get the value of all 3 comma seperated columns, On the basis of first value I Need to call SQLPLUS to execute script ABC. once this is done i need to read second line and so on.


  2. #2
    Join Date
    Mar 2010

    Re: Windows Batch script to read file

    Hello first of all sorry for late reply but I donít think that it is possible to do this kind of thing in a Batch file, but yes it has an alternative you can do this very easily by using AutoHotkey which is a freeware. Where it can be essentially to use FileReadLine command and a FileAppend command which can help you out. And even you can use VBScript to solve your problem. If you insist on using a batch file, you should be able to integrate the batch file to call a VB script if needed.

Similar Threads

  1. VB Script or batch file to run Excel Macro 2010
    By Fakhry in forum Software Development
    Replies: 2
    Last Post: 19-06-2012, 12:23 PM
  2. batch script to find a file
    By stevenwhite in forum Software Development
    Replies: 1
    Last Post: 10-04-2012, 12:55 PM
  3. Batch Script Text file parse
    By in forum Windows Server Help
    Replies: 5
    Last Post: 25-03-2009, 02:12 AM
  4. How can I play a Wav file from batch/cmd script?
    By NaFula in forum Windows Vista Performance
    Replies: 3
    Last Post: 13-09-2008, 09:21 PM
  5. How to create a script in a DOS batch file to do a loop?
    By Jon Osborn in forum Windows Server Help
    Replies: 2
    Last Post: 27-05-2008, 06:41 PM

Posting Permissions

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