Hello,
I have read through previous postings on stripping quotes, but cannot seem to get my batch to remove the quotes.
I have a script that prints a Google URL to a TXT file:
set str="http://www.google.com/search?hl=en&as_q=canada&as_epq=&as_oq=&as_eq=&num=100&lr=&as_filetype=pdf&ft=i&as_sitesearch=uc.edu&as_qdr=all&as_rights=&as_occt=any&cr=&as_nlo=&as_nhi=&safe=off"
echo.%str%
echo.%str% >> url.txt
Any suggestions how to strip out the quotes from the file url.txt
Thank you so much!
Google SERP minus quotes
Moderator: DosItHelp
-
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
-
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
Oops. Should have tested that. Try this instead:
Code: Select all
set str="http://www.google.com/search?hl=en&as_q=canada&as_epq=&as_oq=&as_eq=&num=100&lr=&as_filetype=pdf&ft=i&as_sitesearch=uc.edu&as_qdr=all&as_rights=&as_occt=any&cr=&as_nlo=&as_nhi=&safe=off"
echo.%str%
for /f %%a in (%str%) do echo.%%~a>>url.txt
Thanks so much for that help!!!
avery_larry, Thank you so much for helping me with this one.
I just could not seem to get my head around it properly.
All the best...
I just could not seem to get my head around it properly.
All the best...