RE: wget a file with long path on Windows XP
PoWah Wong wrote: The login page is: http://safari.informit.com/?FPI=uicode= How to figure out the login command? These two commands do not work: wget --save-cookies cookies.txt http://safari.informit.com/?FPI= [snip] wget --save-cookies cookies.txt http://safari.informit.com/?FPI=uicode=/login.php? [snip] When trying to recreate a form in wget, you have to send the data the server is expecting to receive to the location the server is expecting to receive it. You have to look at the login page for the login form and recreate it. In your browser, view the source to http://safari.informit.com/?FPI=uicode= and you will find the form that appears below. Note that I stripped out formatting information for the table that contains the form and reformatted what was left to make it readable. form action=JVXSL.asp method=post input type=hidden name=s value=1 input type=hidden name=o value=1 input type=hidden name=b value=1 input type=hidden name=t value=1 input type=hidden name=f value=1 input type=hidden name=c value=1 input type=hidden name=u value=1 input type=hidden name=r value= input type=hidden name=l value=1 input type=hidden name=g value= input type=hidden name=n value=1 input type=hidden name=d value=1 input type=hidden name=a value=0 input tabindex=1 name=usr id=usr type=text value= size=12 input name=pwd id=pwd tabindex=1 type=password value= size=12 input type=checkbox tabindex=1 name=savepwd id=savepwd value=1 input type=image name=Login src=images/btn_login.gif alt=Login width=40 height=16 border=0 tabindex=1 align=absmiddle /form Note that the server expects the data to be posted to JVXSL.asp and that there are a bunch of fields that must be supplied in order for the server to process the login request. In addition, the two fields you supply are called usr and pwd. So your first wget command line will look something like this: wget --save-cookies cookies.txt http://safari.informit.com/JVXSL.asp; --post-data=s=1o=1b=1t=1f=1c=1u=1r=l=1g=n=1d=1a=0usr=wong_powa [EMAIL PROTECTED]pwd=123savepwd=1 Hope that helps! Tony
RE: wget a file with long path on Windows XP
I can save cookies but still has wgetting a blank web page. The web page url is copied from the url displayed in the web browser. These are the logs. C:\Program Files\wget\wget --save-cookies cookies.txt http://safari.informit.com/JVXSL.asp; --post-data=s=1o=1b=1t=1f=1c=1u=1r=l=1g=n=1d=1a=0[EMAIL PROTECTED]pwd=123savepwd=1 --21:41:38-- http://safari.informit.com/JVXSL.asp = `JVXSL.asp' Resolving safari.informit.com... 193.194.158.208 Connecting to safari.informit.com|193.194.158.208|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 12,149 (12K) [text/html] 100%[] 12,14948.76K/s 21:41:39 (48.63 KB/s) - `JVXSL.asp' saved [12149/12149] First wget: C:\Program Files\wget\wget --load-cookies cookies.txt http://safari.informit.com/JVXSL.asp?x=1mode=sectionsortKey=ranksortOrder=descview=g=catid=itbooks.network.ciscoioss=1b=1f=1t =1c=1u=1r=o=1n=1d=1p=1a=0xmlid=0-596-00367-6/ciscockbk-CHP-1 --21:43:31-- http://safari.informit.com/JVXSL.asp?x=1mode=sectionsortKey=ranksortOrder=descview =g=catid=itbooks.network.ciscoioss=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0xmlid=0-596-00367 -6/ciscockbk-CHP-1 = [EMAIL PROTECTED]mode=sectionsortKey=ranksortOrder=descview=g=catid=itbooks.network .ciscoioss=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0xmlid=0-596-00367-6%2Fciscockbk-CHP-1' Resolving safari.informit.com... 193.194.158.208 Connecting to safari.informit.com|193.194.158.208|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 0 [text/html] [ = ] 0 --.--K/s 21:43:32 (0.00 B/s) - [EMAIL PROTECTED]mode=sectionsortKey=ranksortOrder=descview=g=catid=itbooks .network.ciscoioss=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0xmlid=0-596-00367-6%2Fciscockbk-CHP -1' saved [0/0] Second wget: C:\Program Files\wget\wget --load-cookies cookies.txt --keep-session-cookies http://safari.informit.com/JVXSL.asp?x=1mode=sectionsortKey=ranksortOrder=descview=g=catid=itbooks.network .ciscoioss=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0xmlid=0-596-00367-6/ciscockbk-CHP-1 --21:45:31-- http://safari.informit.com/JVXSL.asp?x=1mode=sectionsortKey=ranksortOrder=descview =g=catid=itbooks.network.ciscoioss=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0xmlid=0-596-00367 -6/ciscockbk-CHP-1 = [EMAIL PROTECTED]mode=sectionsortKey=ranksortOrder=descview=g=catid=itbooks.network .ciscoioss=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0xmlid=0-596-00367-6%2Fciscockbk-CHP-1' Resolving safari.informit.com... 193.194.158.208 Connecting to safari.informit.com|193.194.158.208|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 0 [text/html] [ = ] 0 --.--K/s 21:45:31 (0.00 B/s) - [EMAIL PROTECTED]mode=sectionsortKey=ranksortOrder=descview=g=catid=itbooks .network.ciscoioss=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0xmlid=0-596-00367-6%2Fciscockbk-CHP -1' saved [0/0] I am not subscribed, please cc'd in replies to my post. Thanks. --- Tony Lewis [EMAIL PROTECTED] wrote: PoWah Wong wrote: The login page is: http://safari.informit.com/?FPI=uicode= How to figure out the login command? [snip] So your first wget command line will look something like this: wget --save-cookies cookies.txt http://safari.informit.com/JVXSL.asp; --post-data=s=1o=1b=1t=1f=1c=1u=1r=l=1g=n=1d=1a=0usr=wong_powa [EMAIL PROTECTED]pwd=123savepwd=1 Hope that helps! Tony ___ Post your free ad now! http://personals.yahoo.ca
Re: wget a file with long path on Windows XP
This sounds like a difficult page to download because they may be using cookies or session variables. I'm not sure the best way to proceed, but I would look at the wget documentation about cookies. I think you may have to save the cookies that are generated by the login page and use --load-cookie to get the page you are after. By the way, if you are only after a single page, why not just save it using the browser? Frank PoWah Wong wrote: The website is actually www.informit.com. It require logging in at https://secure.safaribooksonline.com/promo.asp?code=ITT03portal=informita=0 After logging in, then the website becomes similar to booksonline.com which I edit slightly. My public library's electronic access which also require logging in. --- Frank McCown [EMAIL PROTECTED] wrote: Putting quotes around the url got rid of your Invalid parameter errors. I just tried accessing the url you are trying to wget and received an http 500 response. I also tried accessing http://proquest.booksonline.com/ and never got a response. According to your output, wget got back a 0 length response. I would check your web server and make sure it is working properly. Frank PoWah Wong wrote: I put quotes around the url, but it still does not work. C:\bookC:\Program Files\wget\wget.exe http://proquest.booksonline.com/?x=1mode=sectionso rtKey=titlesortOrder=ascview=xmlid=0-321-16076-2/ch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r =o=1n=1d=1p=1a=0page=0 --22:45:26-- http://proquest.booksonline.com/?x=1mode=sectionsortKey=titlesortOrder=ascvi ew=xmlid=0-321-16076-2/ch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0 = [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-16076-2%2Fc h03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' Resolving proquest.booksonline.com... 193.194.158.201 Connecting to proquest.booksonline.com|193.194.158.201|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 0 [text/html] [ = ] 0 --.--K/s 22:45:27 (0.00 B/s) - [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-160 76-2%2Fch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' saved [0/0] C:\bookC:\Program Files\wget\wget.exe http://proquest.booksonline.com/?x=1mode=sectionso rtKey=titlesortOrder=ascview=xmlid=0-321-16076-2/ch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r =o=1n=1d=1p=1a=0page=0 --22:46:59-- http://proquest.booksonline.com/?x=1mode=sectionsortKey=titlesortOrder=ascvi ew=xmlid=0-321-16076-2/ch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0 = [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-16076-2%2Fc h03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' Resolving proquest.booksonline.com... 193.194.158.201 Connecting to proquest.booksonline.com|193.194.158.201|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 0 [text/html] [ = ] 0 --.--K/s 22:46:59 (0.00 B/s) - [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-160 76-2%2Fch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' saved [0/0] C:\bookC:\Program Files\wget\wget.exe http://proquest.booksonline.com/?x=1%26mode=section% 26sortKey=title%26sortOrder=asc%26view=%26xmlid=0-321-16076-2/ch03lev1sec1%26g=%26catid=%26s=1%26b=1 %26f=1%26t=1%26c=1%26u=1%26r=%26o=1%26n=1%26d=1%26p=1%26a=0%26page=0 --22:47:45-- http://proquest.booksonline.com/?x=1%26mode=section%26sortKey=title%26sortOrder= asc%26view=%26xmlid=0-321-16076-2/ch03lev1sec1%26g=%26catid=%26s=1%26b=1%26f=1%26t=1%26c=1%26u=1%26r =%26o=1%26n=1%26d=1%26p=1%26a=0%26page=0 = [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-16076-2%2Fc h03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' Resolving proquest.booksonline.com... 193.194.158.201 Connecting to proquest.booksonline.com|193.194.158.201|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 0 [text/html] [ = ] 0 --.--K/s 22:47:46 (0.00 B/s) - [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-160 76-2%2Fch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' saved [0/0] --- Frank McCown [EMAIL PROTECTED] wrote: I think you need to put quotes around the url. PoWah Wong wrote: The file I want to get is http://proquest.booksonline.com/JVXSL.asp?x=1mode=sectionsortKey=ranksortOrder=descview=bookxmlid=0-321-16076-2/ch02g=srchText=object+orientedcode=h=m=l=1catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0; I opened an MSDOS console on Windows XP. I tried: C:\Program Files\wget\wget.exe
Re: wget a file with long path on Windows XP
Putting quotes around the url got rid of your Invalid parameter errors. I just tried accessing the url you are trying to wget and received an http 500 response. I also tried accessing http://proquest.booksonline.com/ and never got a response. According to your output, wget got back a 0 length response. I would check your web server and make sure it is working properly. Frank PoWah Wong wrote: I put quotes around the url, but it still does not work. C:\bookC:\Program Files\wget\wget.exe http://proquest.booksonline.com/?x=1mode=sectionso rtKey=titlesortOrder=ascview=xmlid=0-321-16076-2/ch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r =o=1n=1d=1p=1a=0page=0 --22:45:26-- http://proquest.booksonline.com/?x=1mode=sectionsortKey=titlesortOrder=ascvi ew=xmlid=0-321-16076-2/ch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0 = [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-16076-2%2Fc h03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' Resolving proquest.booksonline.com... 193.194.158.201 Connecting to proquest.booksonline.com|193.194.158.201|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 0 [text/html] [ = ] 0 --.--K/s 22:45:27 (0.00 B/s) - [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-160 76-2%2Fch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' saved [0/0] C:\bookC:\Program Files\wget\wget.exe http://proquest.booksonline.com/?x=1mode=sectionso rtKey=titlesortOrder=ascview=xmlid=0-321-16076-2/ch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r =o=1n=1d=1p=1a=0page=0 --22:46:59-- http://proquest.booksonline.com/?x=1mode=sectionsortKey=titlesortOrder=ascvi ew=xmlid=0-321-16076-2/ch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0 = [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-16076-2%2Fc h03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' Resolving proquest.booksonline.com... 193.194.158.201 Connecting to proquest.booksonline.com|193.194.158.201|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 0 [text/html] [ = ] 0 --.--K/s 22:46:59 (0.00 B/s) - [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-160 76-2%2Fch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' saved [0/0] C:\bookC:\Program Files\wget\wget.exe http://proquest.booksonline.com/?x=1%26mode=section% 26sortKey=title%26sortOrder=asc%26view=%26xmlid=0-321-16076-2/ch03lev1sec1%26g=%26catid=%26s=1%26b=1 %26f=1%26t=1%26c=1%26u=1%26r=%26o=1%26n=1%26d=1%26p=1%26a=0%26page=0 --22:47:45-- http://proquest.booksonline.com/?x=1%26mode=section%26sortKey=title%26sortOrder= asc%26view=%26xmlid=0-321-16076-2/ch03lev1sec1%26g=%26catid=%26s=1%26b=1%26f=1%26t=1%26c=1%26u=1%26r =%26o=1%26n=1%26d=1%26p=1%26a=0%26page=0 = [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-16076-2%2Fc h03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' Resolving proquest.booksonline.com... 193.194.158.201 Connecting to proquest.booksonline.com|193.194.158.201|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 0 [text/html] [ = ] 0 --.--K/s 22:47:46 (0.00 B/s) - [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-160 76-2%2Fch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' saved [0/0] --- Frank McCown [EMAIL PROTECTED] wrote: I think you need to put quotes around the url. PoWah Wong wrote: The file I want to get is http://proquest.booksonline.com/JVXSL.asp?x=1mode=sectionsortKey=ranksortOrder=descview=bookxmlid=0-321-16076-2/ch02g=srchText=object+orientedcode=h=m=l=1catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0; I opened an MSDOS console on Windows XP. I tried: C:\Program Files\wget\wget.exe http://proquest.booksonline.com/JVXSL.asp?x=1mode=sectionsortKey=ranksortOrder=descview=bookxmlid=0-321-16076-2/ch02g=srchText=object+orientedcod e=h=m=l=1catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0 --05:33:34-- http://proquest.booksonline.com/JVXSL.asp?x=1 = [EMAIL PROTECTED]' Resolving proquest.booksonline.com... 193.194.158.201 Connecting to proquest.booksonline.com|193.194.158.201|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 0 [text/html] [ = ] 0 --.--K/s 05:33:34 (0.00 B/s) - [EMAIL PROTECTED]' saved [0/0] Invalid parameter - =section 'sortKey' is not recognized as an internal or external command, operable program or batch file. 'sortOrder' is not recognized as an internal or external command, operable program or batch file. 'view' is not recognized as an internal or external command, operable program or batch
Re: wget a file with long path on Windows XP
I put quotes around the url, but it still does not work. C:\bookC:\Program Files\wget\wget.exe http://proquest.booksonline.com/?x=1mode=sectionso rtKey=titlesortOrder=ascview=xmlid=0-321-16076-2/ch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r =o=1n=1d=1p=1a=0page=0 --22:45:26-- http://proquest.booksonline.com/?x=1mode=sectionsortKey=titlesortOrder=ascvi ew=xmlid=0-321-16076-2/ch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0 = [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-16076-2%2Fc h03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' Resolving proquest.booksonline.com... 193.194.158.201 Connecting to proquest.booksonline.com|193.194.158.201|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 0 [text/html] [ = ] 0 --.--K/s 22:45:27 (0.00 B/s) - [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-160 76-2%2Fch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' saved [0/0] C:\bookC:\Program Files\wget\wget.exe http://proquest.booksonline.com/?x=1mode=sectionso rtKey=titlesortOrder=ascview=xmlid=0-321-16076-2/ch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r =o=1n=1d=1p=1a=0page=0 --22:46:59-- http://proquest.booksonline.com/?x=1mode=sectionsortKey=titlesortOrder=ascvi ew=xmlid=0-321-16076-2/ch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0 = [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-16076-2%2Fc h03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' Resolving proquest.booksonline.com... 193.194.158.201 Connecting to proquest.booksonline.com|193.194.158.201|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 0 [text/html] [ = ] 0 --.--K/s 22:46:59 (0.00 B/s) - [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-160 76-2%2Fch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' saved [0/0] C:\bookC:\Program Files\wget\wget.exe http://proquest.booksonline.com/?x=1%26mode=section% 26sortKey=title%26sortOrder=asc%26view=%26xmlid=0-321-16076-2/ch03lev1sec1%26g=%26catid=%26s=1%26b=1 %26f=1%26t=1%26c=1%26u=1%26r=%26o=1%26n=1%26d=1%26p=1%26a=0%26page=0 --22:47:45-- http://proquest.booksonline.com/?x=1%26mode=section%26sortKey=title%26sortOrder= asc%26view=%26xmlid=0-321-16076-2/ch03lev1sec1%26g=%26catid=%26s=1%26b=1%26f=1%26t=1%26c=1%26u=1%26r =%26o=1%26n=1%26d=1%26p=1%26a=0%26page=0 = [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-16076-2%2Fc h03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' Resolving proquest.booksonline.com... 193.194.158.201 Connecting to proquest.booksonline.com|193.194.158.201|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 0 [text/html] [ = ] 0 --.--K/s 22:47:46 (0.00 B/s) - [EMAIL PROTECTED]mode=sectionsortKey=titlesortOrder=ascview=xmlid=0-321-160 76-2%2Fch03lev1sec1g=catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0' saved [0/0] --- Frank McCown [EMAIL PROTECTED] wrote: I think you need to put quotes around the url. PoWah Wong wrote: The file I want to get is http://proquest.booksonline.com/JVXSL.asp?x=1mode=sectionsortKey=ranksortOrder=descview=bookxmlid=0-321-16076-2/ch02g=srchText=object+orientedcode=h=m=l=1catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0; I opened an MSDOS console on Windows XP. I tried: C:\Program Files\wget\wget.exe http://proquest.booksonline.com/JVXSL.asp?x=1mode=sectionsortKey=ranksortOrder=descview=bookxmlid=0-321-16076-2/ch02g=srchText=object+orientedcod e=h=m=l=1catid=s=1b=1f=1t=1c=1u=1r=o=1n=1d=1p=1a=0page=0 --05:33:34-- http://proquest.booksonline.com/JVXSL.asp?x=1 = [EMAIL PROTECTED]' Resolving proquest.booksonline.com... 193.194.158.201 Connecting to proquest.booksonline.com|193.194.158.201|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 0 [text/html] [ = ] 0 --.--K/s 05:33:34 (0.00 B/s) - [EMAIL PROTECTED]' saved [0/0] Invalid parameter - =section 'sortKey' is not recognized as an internal or external command, operable program or batch file. 'sortOrder' is not recognized as an internal or external command, operable program or batch file. 'view' is not recognized as an internal or external command, operable program or batch file. 'xmlid' is not recognized as an internal or external command, operable program or batch file. 'g' is not recognized as an internal or external command, operable program or batch file. 'srchText' is not recognized as an internal or external command, operable program or batch file. 'code' is not recognized as an internal or external