Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Windows Batch script to read file

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 13-04-2012
Member
 
Join Date: Apr 2012
Posts: 1
Windows Batch script to read file

Hi Experts,

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

SQL,ABC,1
SQL,ABC1,2

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.

Thanks

Reply With Quote
  #2  
Old 28-04-2012
Member
 
Join Date: Mar 2010
Posts: 143
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.
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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 12:23 PM
batch script to find a file stevenwhite Software Development 1 10-04-2012 12:55 PM
Batch Script Text file parse tator.usenet@gmail.com Windows Server Help 5 25-03-2009 02:12 AM
How can I play a Wav file from batch/cmd script? NaFula Windows Vista Performance 3 13-09-2008 09: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 06:41 PM


All times are GMT +5.5. The time now is 09:47 PM.