Hi everyone, I am trying for at least this past week to create my own batch file which would seek in any directories and folders for any filename with .avi extension. second problem which i couldn't figure it out is let's say when my file (Newfile.avi) located in folder E:\movies, and i would like it to search any name with the correct extension put it into a variable so that i could play it later with a cmd.exe command. I do not know if what i request is possible to do as i managed to put any text input from my notepad, but i couldn't tell it to initialise any .avi file name found straight from E:\movies. I have read countless sites to get similar code with i could adapt to my own taste but nothing found which i could translate to ok english. I have tried so many variosu method of if and for statement but i really get confuse with the for statement even after many articles or from the help command line. Please help, thanks for any support I feel like the more I read about batch and the more I really feel I do not know much about Batch file.