For example in a folder named sample there are 3 images namely *img1.jpg* & *img2.jpg* & *img3.jpg* 

I want to copy all the paths of all images to a `.txt` file

content of .txt will be

```
C:/sample/img1.jpg
C:/sample/img2.jpg
C:/sample/img3.jpg

```