My goal is to remove the double quote and send resource of .txt file as body mail through blat, I've seen a lot of question regarding this(removing double quotes).. but I can't figure out, where am I doing wrong. Here is my code
set "now=%date:~4%"
for /f %%i in ('FORFILES /D %now% /m *.csv /c "cmd /c echo @fname"')
do @set MyVariable=%%~i > C:\temp\count.txt
CD C:\temp\blat3217\full
blat C:\temp\count.txt -p user -s "Incoming_File_Alert" -to mymail@mail.com
EDIT:
This giving output blank.
EDIT 2 :
if I switch out line number 2 with this FORFILES /D %now% /m *.csv /c "cmd /c echo @fname" > C:\temp\count.txt
The output is like this
"407232_341600" "TW39369763_341610" "1726_341592" "407316_341601" "16001_341597" "100001317_341590" "407367_341602" "DHB11838_341593" "407439_341606" "407556_341604" "2373_341595" "ALL1020-461_341614" "407382_341605" "3598_341613" "PO051334_341589" "407537_341607" "407222_341598" "TW39369964_341611" "407403_341608"