Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: General format for openning several files in a single <BATCH FILE>  (Read 4750 times)

0 Members and 1 Guest are viewing this topic.

spdCHF

    Topic Starter


    Rookie

    Thanked: 1
    Many thanks for help.
    Now I am going to make a <BATCH FILE> that would open several files under the command <sleep>
    1) one by one
    2) several simultaneously.
     What IS THE GENERAL FORMAT OF THE <BATCH FILE> TO EXICUTE THE PROGRAM, PLEASE ?

    Carbon Dudeoxide

    • Global Moderator

    • Mastermind
    • Thanked: 169
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Experience: Guru
    • OS: Mac OS
    Re: General format for openning several files in a single <BATCH FILE>
    « Reply #1 on: April 13, 2009, 06:18:33 AM »
    Sorry, what?

    spdCHF

      Topic Starter


      Rookie

      Thanked: 1
      Re: General format for openning several files in a single <BATCH FILE>
      « Reply #2 on: April 13, 2009, 09:47:04 AM »
      Sir, my question is as clear as crystal. If you know English you will understand,otherwise never. I am again putting my question in another way:-
      1)suppose I want to play 5 (five) movies (movie1,movie2,movie3,movie4,movie5) one by one. How should I write them after the command <start> ? Separated by comma (movie1,movie2,movie3,movie4,movie5 with their extensions),or other way so that they play one by one (sequentially) ?
      2)If I use <sleep> command once and write < start movie1,movie2,movie3,movie4,movie5> with proper path and extension,would it work ?

      With regards
       spdCHF

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: General format for openning several files in a single <BATCH FILE>
      « Reply #3 on: April 13, 2009, 09:49:14 AM »
      I am wanting answer to this question quick for need in project.

      e-mail at IcoulddothismyselfifonlyIcouldlearnhowt [email protected] k thx for your help if you don't help no thx bye.

      this question is so trivial I won't even bother answering. In fact, technically I already answered it.
      I was trying to dereference Null Pointers before it was cool.

      Carbon Dudeoxide

      • Global Moderator

      • Mastermind
      • Thanked: 169
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Experience: Guru
      • OS: Mac OS
      Re: General format for openning several files in a single <BATCH FILE>
      « Reply #4 on: April 13, 2009, 09:51:56 AM »
      Why would you need such thing?

      macdad-



        Expert

        Thanked: 40
        Re: General format for openning several files in a single <BATCH FILE>
        « Reply #5 on: April 13, 2009, 11:33:43 AM »
        Perhaps a virus?
        If you dont know DOS, you dont know Windows...

        Thats why Bill Gates created the Windows NT Family.

        Dias de verano

        • Guest
        Re: General format for openning several files in a single <BATCH FILE>
        « Reply #6 on: April 13, 2009, 12:33:15 PM »
        Sir, my question is as clear as crystal. If you know English you will understand,otherwise never.

        Your question is as murky as mud. I know English, and, it seems to me, you do not.

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: General format for openning several files in a single <BATCH FILE>
        « Reply #7 on: April 13, 2009, 06:45:05 PM »
        why none of you e-mail me solution, this importanter then other things you are doing, you are like little flies helping a spider to survive so you shuld help me with this issue k thx bye.
        I was trying to dereference Null Pointers before it was cool.

        Helpmeh



          Guru

        • Roar.
        • Thanked: 123
          • Yes
          • Yes
        • Computer: Specs
        • Experience: Familiar
        • OS: Windows 8
        Re: General format for openning several files in a single <BATCH FILE>
        « Reply #8 on: April 13, 2009, 06:46:36 PM »
        why none of you e-mail me solution, this importanter then other things you are doing, you are like little flies helping a spider to survive so you shuld help me with this issue k thx bye.
        Lol...
        Where's MagicSpeed?
        Quote from: 'matt'
        He's playing a game called IRL. Great graphics, *censored* gameplay.

        spdCHF

          Topic Starter


          Rookie

          Thanked: 1
                                 TO BC_Programmer with thanks
                                 =======================
          Sir, my well working <BATCH FILES> are
          1)PLAYVLC.BAT
           @echo OFF
          start d:\vlc1.avi
          sleep 20
          start d:\vlc2.mp3
          sleep 20
          TASKKILL /F /IM VLC.EXE
          2)1.BAT
          @ECHO OFF
          START /MIN PLAYVLC.BAT

           The 1st BATCH FILE "PLAYVLC.BAT" is to play two separate files,namely,
          vlc1.avi and vlc2.mp3.
           The second "BATCH FILE" 1.BAT is to keep 'BLACK MS-DOS window' minimized.
           My question is if there is an alternate way to write file names in a single line
          under single <sleep time> command.
           I think I make you understand my query.
            WITH BEST REGARDS
                'spdCHF'

          « Last Edit: April 13, 2009, 09:23:58 PM by spdCHF »

          Carbon Dudeoxide

          • Global Moderator

          • Mastermind
          • Thanked: 169
            • Yes
            • Yes
            • Yes
          • Certifications: List
          • Experience: Guru
          • OS: Mac OS
          Re: General format for openning several files in a single <BATCH FILE>
          « Reply #10 on: April 13, 2009, 10:04:21 PM »
          no

          macdad-



            Expert

            Thanked: 40
            Re: General format for openning several files in a single <BATCH FILE>
            « Reply #11 on: April 14, 2009, 06:18:41 AM »
            But it is possible in a FOR loop.

            Code: [Select]
            @echo off
            for %%a in (1 2) do (
            if '%%a'=='1' start d:\vlc1.avi
            if '%%a'=='2' start d:\vlc2.mp3
            sleep 20
            )
            taskkill /f /im VLC.EXE

            Hope this helps
            ,Nick(macdad-)
            If you dont know DOS, you dont know Windows...

            Thats why Bill Gates created the Windows NT Family.

            spdCHF

              Topic Starter


              Rookie

              Thanked: 1
              Re: General format for openning several files in a single <BATCH FILE>
              « Reply #12 on: April 15, 2009, 01:23:32 AM »
              no

              Sir,you said that I don't know English and you couldn't answer my question.Later I explained the matter step by step as a teacher do in primary level. Then perhaps you understood my question and the answer was "no".
              But thanks to macdad- who answered positive. It can be done.
              I request you not to answer "yes" or "no" which is beyond your knowledge;a person doesn't know everything. Learn to say "I don't know".
               Excuse me If I hart you anyway.

              With regards,
              spdCHF

              Dias de verano

              • Guest
              Re: General format for openning several files in a single <BATCH FILE>
              « Reply #13 on: April 15, 2009, 01:28:11 AM »
              I request you not to answer "yes" or "no" which is beyond your knowledge;a person doesn't know everything. Learn to say "I don't know".

              I request you to go crap in a hat.

              BC_Programmer


                Mastermind
              • Typing is no substitute for thinking.
              • Thanked: 1140
                • Yes
                • Yes
                • BC-Programming.com
              • Certifications: List
              • Computer: Specs
              • Experience: Beginner
              • OS: Windows 11
              Re: General format for openning several files in a single <BATCH FILE>
              « Reply #14 on: April 15, 2009, 01:44:42 AM »
              Sir,you said that I don't know English and you couldn't answer my question.Later I explained the matter step by step as a teacher do in primary level. Then perhaps you understood my question and the answer was "no".
              But thanks to macdad- who answered positive. It can be done.
              I request you not to answer "yes" or "no" which is beyond your knowledge;a person doesn't know everything. Learn to say "I don't know".
               Excuse me If I hart you anyway.

              With regards,
              spdCHF


              Wow, if primary teachers explained it that way, we'd have an awful lot of complete retards!

              your "clarification" of the query:

              Quote
              My question is if there is an alternate way to write file names in a single line
              under single <sleep time> command.

              made ABSOLUTELY NO SENSE. given macdad was somehow able to decipher the babble you call "english", the solution doesn't even match what you asked.


              A: it uses more then one line.
              B: it executes the sleep command more then once
              C: the sleep command, physically speaking, is underneath the file execution


              basically- it meets NONE of the requirements you specify, because apparently what you meant to say was, "how can I do this with only one call to sleep?" which is NOT what you said.

              However I must echo a kudos to his perserverence for helping somebody with the social skills of a thermonuclear device.

              learn a few ground rules. If nobody helps you with a issue, it doesn't mean they don't know a solution, it's just that they don't like dealing with people who create multiple topics under different names to try to evoke a reply and use broken english that they insist is fully understandable. Unfortunately not everybody is autistic, so we can't infer meaning from broken sentences and grammatically ambiguous statements.

              I was trying to dereference Null Pointers before it was cool.