Search found 54 matches

by Matt20687
15 May 2012 13:06
Forum: DOS Batch Forum
Topic: can we login into gmail account using batch?
Replies: 9
Views: 8731

Re: can we login into gmail account using batch?

I would autohotkey to be honest. You can use it to input tabs, returns and such like. You can have it navigate to the username field and enter your username and then navigate to the password field and enter that. Quite simple to use
by Matt20687
15 May 2012 10:52
Forum: DOS Batch Forum
Topic: ErrorLevel Command Required?
Replies: 26
Views: 17049

Re: ErrorLevel Command Required?

Why would you even want it to process for the loop if it is not in the IMS file? If it is in the ims file the need for it to carry on is not required. If it is not in the ims file i need it to carry on with the loop. The reason for this is because if the loop carries on and it is already at the unr...
by Matt20687
15 May 2012 06:16
Forum: DOS Batch Forum
Topic: ErrorLevel Command Required?
Replies: 26
Views: 17049

Re: ErrorLevel Command Required?

The line at the top will make it go to :menu if "Unreported" does not exist in ims.txt find "Unreported" <ims.txt>nul || goto :Menu for /f "delims=" %%G in (id.txt) do ( wget --http-user=%IMSUSER% --http-password=%IMSPASS% --tries=10 -O - >> C:\Users\MatthewM.MEDICAGRO...
by Matt20687
14 May 2012 14:04
Forum: DOS Batch Forum
Topic: ErrorLevel Command Required?
Replies: 26
Views: 17049

ErrorLevel Command Required?

Hello, I wonder if anyone can help? I would like to have a error level (i think) for the below code, basically what i would like to do is run the below code if the word Unreported occurs in ims.txt. If the word Unreported does not occur in ims.txt i would like it to go back to MENU. Originally i tho...
by Matt20687
11 May 2012 09:56
Forum: DOS Batch Forum
Topic: Searching html? Can a batch file do this?
Replies: 38
Views: 20911

Re: Searching html? Can a batch file do this?

I think this is what you want: @echo off for /f "delims=" %%a in ('type "acc.txt"') do ( for /f "tokens=1,2" %%b in ('sed -n "s/.*-\(.*\)&sps_id=\([0-9][0-9][0-9][0-9][0-9][0-9][0-9]\)');.><td>%%a.*/\1 \2/p" "lms.txt"') do ( echo the reference &...
by Matt20687
11 May 2012 09:38
Forum: DOS Batch Forum
Topic: Searching html? Can a batch file do this?
Replies: 38
Views: 20911

Re: Searching html? Can a batch file do this?

This works here with the sample html that you posted. @echo off for /f "delims=" %%a in ('type "acc.txt"') do ( for /f "delims=" %%b in ('sed -n "s/.*sps_id=\([0-9][0-9][0-9][0-9][0-9][0-9][0-9]\)');.><td>%%a.*/\1/p" "lms.txt"') do ( echo the refere...
by Matt20687
10 May 2012 11:51
Forum: DOS Batch Forum
Topic: Searching html? Can a batch file do this?
Replies: 38
Views: 20911

Re: Searching html? Can a batch file do this?

This works here with the sample html that you posted. @echo off for /f "delims=" %%a in ('type "acc.txt"') do ( for /f "delims=" %%b in ('sed -n "s/.*sps_id=\([0-9][0-9][0-9][0-9][0-9][0-9][0-9]\)');.><td>%%a.*/\1/p" "lms.txt"') do ( echo the refere...
by Matt20687
10 May 2012 10:51
Forum: DOS Batch Forum
Topic: Searching html? Can a batch file do this?
Replies: 38
Views: 20911

Re: Searching html? Can a batch file do this?

Will each entry always appear in this format? Will the bit in blue always appear between the number that you want and the reference that you have - ABC1234567 in this case? patient_id=PREFIX-ID&sps_id=1234567 ');"><td> ABC1234567</td> And what is the task? Do you have acc.txt that contains...
by Matt20687
10 May 2012 09:07
Forum: DOS Batch Forum
Topic: Searching html? Can a batch file do this?
Replies: 38
Views: 20911

Re: Searching html? Can a batch file do this?

patient_id=PREFIX-ID&sps_id=1234567');"><td> ABC1234567 </td> The code i am using is: set acc=acc.txt set ims=ims.txt set "sps=');" for /f %%a in ('sed -n "s/.*sps_id=\([0-9][0-9][0-9][0-9][0-9][0-9][0-9]\)%sps%.* Do not report .*/\1/p" %ims%') do echo %%a pause With th...
by Matt20687
10 May 2012 07:27
Forum: DOS Batch Forum
Topic: Searching html? Can a batch file do this?
Replies: 38
Views: 20911

Re: Searching html? Can a batch file do this?

patient_id=PREFIX-ID&sps_id=1234567');"><td> ABC1234567 </td> The code i am using is: set acc=acc.txt set ims=ims.txt set "sps=');" for /f %%a in ('sed -n "s/.*sps_id=\([0-9][0-9][0-9][0-9][0-9][0-9][0-9]\)%sps%.* Do not report .*/\1/p" %ims%') do echo %%a pause With th...
by Matt20687
09 May 2012 05:12
Forum: DOS Batch Forum
Topic: Searching html? Can a batch file do this?
Replies: 38
Views: 20911

Re: Searching html? Can a batch file do this?

The issue i have is there are a couple of examples where a 7 digit number is occurring just before the number i actually want to retrieve. Are we able to add another rule in? The number i need always has sps_id= before and &unreport after, so the question i have is is there anyway we can limit ...
by Matt20687
09 May 2012 04:12
Forum: DOS Batch Forum
Topic: Searching html? Can a batch file do this?
Replies: 38
Views: 20911

Re: Searching html? Can a batch file do this?

The issue i have is there are a couple of examples where a 7 digit number is occurring just before the number i actually want to retrieve. Are we able to add another rule in? The number i need always has sps_id= before and &unreport after, so the question i have is is there anyway we can limit ...
by Matt20687
08 May 2012 08:07
Forum: DOS Batch Forum
Topic: Searching html? Can a batch file do this?
Replies: 38
Views: 20911

Re: Searching html? Can a batch file do this?

I am having a bit of an issue getting your code to work foxi. It works wells when i input one ACC such as below. (FYI ims.txt hold all of the html that i have extracted) set ims=ims.txt for /f %%a in ('sed -n "s/.*\([0-9][0-9][0-9][0-9][0-9][0-9][0-9]\).*ABC123*/\1/p" %ims%') do echo %%a ...
by Matt20687
08 May 2012 06:59
Forum: DOS Batch Forum
Topic: Searching html? Can a batch file do this?
Replies: 38
Views: 20911

Re: Searching html? Can a batch file do this?

I am having a bit of an issue getting your code to work foxi. It works wells when i input one ACC such as below. (FYI ims.txt hold all of the html that i have extracted) set ims=ims.txt for /f %%a in ('sed -n "s/.*\([0-9][0-9][0-9][0-9][0-9][0-9][0-9]\).*ABC123*/\1/p" %ims%') do echo %%a p...
by Matt20687
08 May 2012 03:55
Forum: DOS Batch Forum
Topic: Searching html? Can a batch file do this?
Replies: 38
Views: 20911

Re: Searching html? Can a batch file do this?

ignore my last post, i have managed to get it to work with: for /f "delims=" %%G in (id.txt) do ( wget --http-user=%IMSUSER% --http-password=%IMSPASS% --tries=10 -O - >> C:\Users\MatthewM.MEDICAGROUP\Desktop\UnreportorAssignBatch\%ims% "http://WEBSITE=%prefix%-%%G&old_patient_id=%...