Windows Batch script to read file
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.
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.
|Tags: batch script|
|Thread Tools||Search this Thread|
|Similar Threads for: "Windows Batch script to read file"|
|Thread||Thread Starter||Forum||Replies||Last Post|
|VB Script or batch file to run Excel Macro 2010||Fakhry||Software Development||2||19-06-2012 01:23 PM|
|batch script to find a file||stevenwhite||Software Development||1||10-04-2012 01:55 PM|
|Batch Script Text file firstname.lastname@example.org||Windows Server Help||5||25-03-2009 03:12 AM|
|How can I play a Wav file from batch/cmd script?||NaFula||Windows Vista Performance||3||13-09-2008 10:21 PM|
|How to create a script in a DOS batch file to do a loop?||Jon Osborn||Windows Server Help||2||27-05-2008 07:41 PM|