MyFlight
Technical User
- Feb 4, 2002
- 193
I need to Setup a Script File that will Read values from a file (not sure if it will be text or Excel). The file size varies. If text it is Comma Deliminated and I need the 2 field which is enclosed in quotation mark, size varies between 3 and 7 chars). If excel the value would be in the 2nd cell. I need to do this for each line in the fiel (sometime fairly Large files). I need to read this value and send it via ProComm to the Equipment I am connected to. EXAMPLE: File Name C:\Macros\TestFile.txt
Example of TestFile.txt viewed in WordPad: 1,"2000"","","","","","","Smith Jay",.....ETC
1,"15020"","","","","","","Smith Jake",.....ETC
1,"120020"","","","","","","Smith Jeff",.....ETC
1,"2001"","","","","","","Smith John",.....ETC
I need to Copy the 2000 from the first line and Send it Via ProComm to the Equipment I am Connected to (Via Modem). Then perform some other functions, and repeat until the I reach the End-Of-File.
Any suggestions will be greatly appreciated.
Example of TestFile.txt viewed in WordPad: 1,"2000"","","","","","","Smith Jay",.....ETC
1,"15020"","","","","","","Smith Jake",.....ETC
1,"120020"","","","","","","Smith Jeff",.....ETC
1,"2001"","","","","","","Smith John",.....ETC
I need to Copy the 2000 from the first line and Send it Via ProComm to the Equipment I am Connected to (Via Modem). Then perform some other functions, and repeat until the I reach the End-Of-File.
Any suggestions will be greatly appreciated.