Search found 4 matches
- 11 Sep 2011 16:53
- Forum: DOS Batch Forum
- Topic: Getting better, but dont handle errors well
- Replies: 1
- Views: 2738
Getting better, but dont handle errors well
Getting a little better at this. My batch will open the CD drawer, I put in the disk, it closes the door, reads the directory, and sends it to a txt file. Buuuut - What if there is an error, such as no cd, unreadable cd, etc? Right now the program merely will report an error to the screen, and goes ...
- 11 Sep 2011 16:43
- Forum: DOS Batch Forum
- Topic: Assigning the last line of a txt file to a value
- Replies: 4
- Views: 4511
Re: Assigning the last line of a txt file to a value
Thanks, Trebor! Just for what I've been looking. This is a an Helluva good support forum. Maybe one day I will be able to answer rather than just ask. Yours for Better Television, == Doc Remember, a preposition is the wrong thing to end a sentence with - and That is something up with which I shall n...
- 10 Sep 2011 10:53
- Forum: DOS Batch Forum
- Topic: Assigning the last line of a txt file to a value
- Replies: 4
- Views: 4511
Re: Assigning the last line of a txt file to a value
Thanks! I'll give this a try. Doesn't seem to be a book or list anywhere of all the Batch commands. Not i one place, anyway. I've got three copies of my GWBASIC and TURBO BASIC books, so I can usually lay my hands on one within a few minutes. (I'm organizationally challenged, as I like to say). Than...
- 09 Sep 2011 16:25
- Forum: DOS Batch Forum
- Topic: Assigning the last line of a txt file to a value
- Replies: 4
- Views: 4511
Assigning the last line of a txt file to a value
I'm almost there! I have a script which will search through a txt file (list.txt) to the very last line (or record). This last line is always a decimal number between 1 and 1000. I'd like to be able to assign this to a value in a batch file, but cannot understand how to import this one line of data ...