i had fbcmd.bat that display list of URLs but transferring list of URLs by adding "> download-list.txt" to a "fbcmd.bat PPICS =ALL:
Code: Select all
fbcmd.bat PPICS =ALL >download-list.txt
will result :
access denied
but i had to to select all and copy then pasted to a text file so that i can removed all whitespace by bat script and the result is a single line:
Code: Select all
https://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash3/48993_100002535134778_1670419627_n.jpgBrendaFeliscohttps://fbcdn-profile-a.akamaihd.net/hprofile-ak-prn2/1117539_100001110710172_164502485_n.jpgMarryRoseFernandezhttps://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash2/1117011_100004568976251_2070804027_n.jpgRowenaAbaoFrantzv+Ñghttps://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash1/275744_1516676599_1899887613_n.jpgWellanJoyDelaFuertahttps://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash1/186138_100000029740705_1019427784_n.jpgJewongHanhttps://fbcdn-profile-a.akamaihd.net/hprofile-ak-prn1/41716_100000170020453_4351_n.jpgMercyMadeloHerskovitzhttps://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash2/1118049_597342734_500448546_n.jpg
but all i know is this code but failed:
Code: Select all
@echo off
setlocal enabledelayedexpansion
:: to remove string(it is a name of users) between strings
:: use * as it is a syntax for any number of character
:: replaced any charaters between jgp and https
:: example : jgp*https to jpgxxxhttps
set "filename=download-list.txt"
set "tempfile=download-list-new.txt"
for /F "delims=" %%a in (%filename%) do (
set "text=%%a"
set "text=!text:jpg*https=jpgxxxhttps!"
echo !text! >%tempfile%
)
pause
i repeat above * syntax does not work.
and all i want is this final output so that i can use it for downloading through wget.exe:
Code: Select all
https://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash3/48993_100002535134778_1670419627_n.jpg
https://fbcdn-profile-a.akamaihd.net/hprofile-ak-prn2/1117539_100001110710172_164502485_n.jpg
https://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash2/1117011_100004568976251_2070804027_n.jpg
you read above? but not replaced with an xxxx string !
but all i need is above result that remove strings between jgp and https
--above result should not be in one line
--all Urls must be one line each.
--so that using wget.exe for downloading would not be a problems for me.
an answer is highly appreciated.
thanks
Bars