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
 

Similar threads

Broker Special Offers

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Name:Phone:
Email:City:
State:
Are you a day trader?