Filtering stocks from RM singhs google drive for use

lemondew

Well-Known Member
#1
A big thanks to RM singh for sharing data https://drive.google.com/drive/folders/0B8e3dtbFwQWUZ1I5dklCMmE5M2M

The following code will copy files present in f:\stocks\datacode\modfl_2.txt from src folder to dest folder. It will maintain the folder structure present in source folder.

The format for modfl_2.txt is as follows
ASHOKLEY.txt
ASIANPAINT.txt


rem @echo off
set src_folder=f:\Stocks\midata\2019
set dst_folder=f:\Stocks\mydata2019

for /f "tokens=*" %%G in ('dir /ad /b /s "%src_folder%"') do (
for /f "tokens=*" %%i in (d:\stocks\datacode\modfl_2.txt) do (
echo d | xcopy /S/E "%%G\%%i" "%dst_folder%\%%~nG"
rem echo "%%G\%%i"
rem echo "%dst_folder%\%%~nG"

)
)
 

lemondew

Well-Known Member
#2
The above script is useful if after downloading the file for entire month for all stocks you wish to have files only for select group of stocks
 
#3
Let me first say thank yoiu for sharing this. I have tried so many filtering options but I have never got the right one like this. You hvae truly got our back. I do not know why google docs has such limitations. They should upgrade their stats and get serious with their docs. The fact that it is free means that I should not be complaning but what in the world anyway.
 

Similar threads