Jump to content

nicolas

Member
  • Posts

    3
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    France

Everything posted by nicolas

  1. Thank you so much jaclaz. I just checked your reply and I will try it right away. Yes indeed baby step was exactly what i needed. I managed to understand that i would need to setlocal enabledelayedexpansion and it did what i wanted but i couldn't make a loop which will read myfile.text line by line and input the result into a variable which i could have tested later on. Through this little exercice i learn more than expected. i will reply again to let you know how it goes.
  2. Thanks you all for any answers provided. My request was a bit confusing to understand so i am going to break it into smaller part. First , i need a batch file which will loop into each drives and folders (C:\Movies) and seek any files names which has the avi extension (Mymoviefile.avi) for example. then this is where I really get stuck, I need a variable to stock either the filename (Mymoviefile) or the name of the folder in which the avi file is located. Ex:my variable NameMov="". Then i would need that variable to input the filename (mymoviefile) into the variable. This is so that i could after make a comparaison test against a user's keyboard input and if it is the same name then it should go and play it, if it is not the same file then it must carry on looping to the next filename of any .avi file found until it found a match or until a echo stating: "no movie file found " for instance. Voila I do hope this was much explicit for everyone to understand my request. All possible ideas or explainations will be a great help Thanks to all .
  3. 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.
×
×
  • Create New...