Search found 8 matches

by Anthony
Thu Jun 02, 2005 2:29 pm
Forum: Technical / Scripting
Topic: Grabbing variables in a text file.
Replies: 12
Views: 13756

Ahhh.. worked perfectly! One last thing, I finally went in and put in IF in for when it's done reading the file, and everytime it gets to the end, I get the following error: Access violation at address 004CA5EC in module 'msched.exe'. Read of address 00000000. ReadLn>c:\Documents and settings\%USER_...
by Anthony
Wed Jun 01, 2005 7:41 pm
Forum: Technical / Scripting
Topic: Grabbing variables in a text file.
Replies: 12
Views: 13756

Thanks everyone who helped me with this! I got it working... kinda :? The problem I'm running into is grabbing the Duration at the end of the line. 192.168.10.10 - - [26/May/2005:13:11:41 -0400] "GET broadcast/1234567.rm?1=Anthony&2=Company Name, LLP RTSPT/1.0" 200 3147600 [WinNT_5.1_6.0.12.1069_Rea...
by Anthony
Wed Jun 01, 2005 3:49 pm
Forum: Technical / Scripting
Topic: Grabbing variables in a text file.
Replies: 12
Views: 13756

Ahhh yeah ok that makes sense! Can't believe I didn't think of that :)

Thanks for the advice!
by Anthony
Wed Jun 01, 2005 2:59 pm
Forum: Technical / Scripting
Topic: Grabbing variables in a text file.
Replies: 12
Views: 13756

Ok so it was myfault for not reading up on VAREXPLICIT enough. I got that part down, I'm set now. I just have 1 question remaining and hopefully I can answer it myself but I'm posting here incase because the help here has been great :) I know I can find a specific location and grab a set number of c...
by Anthony
Wed Jun 01, 2005 2:30 pm
Forum: Technical / Scripting
Topic: Grabbing variables in a text file.
Replies: 12
Views: 13756

Ok, so in the above example instead of using Add I used Let. The reason was because I was running into an error and forgot to change it back. When I use Add it seems like it thinks it's the date. and the MidStr is trying to grab characters starting at 1/9/1900 instead of Loc+10. Even if I try to use...
by Anthony
Wed Jun 01, 2005 1:55 pm
Forum: Technical / Scripting
Topic: Grabbing variables in a text file.
Replies: 12
Views: 13756

Ok, I think I understand a little better. I was using an older version of Macro Scheduler and there seems to be more information in the newer help file. It's still not working for me and I'm getting an Error in SubString Command. Label>Begin Let>VAREXPLICIT=1 Let>LineNumber=1 ReadLn>c:\test.txt,%Lin...
by Anthony
Tue May 31, 2005 8:30 pm
Forum: Technical / Scripting
Topic: Grabbing variables in a text file.
Replies: 12
Views: 13756

Thanks for the reply. I think I'm just confused on exactly how to use the commands... :x I'm almost there, but there is just something I'm not grasping. So, I can use Position to grab the always 7 digit number after "broadcast/", but what would I use to grab something that could be any random length...
by Anthony
Tue May 31, 2005 6:15 pm
Forum: Technical / Scripting
Topic: Grabbing variables in a text file.
Replies: 12
Views: 13756

Grabbing variables in a text file.

I have logs that are created with a lot of different information. I cannot change the way these logs capture information, but was wondering if there is a way to grab specific text after a specific keyword. The log may look something like this: 192.168.10.10 - - [26/May/2005:13:11:41 -0400] "GET broa...
Sign up to our newsletter for free automation tips, tricks & discounts