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 4769 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.

              Dias de verano

              • Guest
              Re: General format for openning several files in a single <BATCH FILE>
              « Reply #15 on: April 15, 2009, 01:49:53 AM »
              Unfortunately not everybody is autistic, so we can't infer meaning from broken sentences and grammatically ambiguous statements.

              I bet this place has more proportionately than the general population

              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 #16 on: April 15, 2009, 01:57:42 AM »
              probably.

              I just had to add the link, too.  ;D
              I was trying to dereference Null Pointers before it was cool.

              spdCHF

                Topic Starter


                Rookie

                Thanked: 1
                Re: General format for openning several files in a single <BATCH FILE>
                « Reply #17 on: April 15, 2009, 02:13:05 AM »
                Sir, macdad- used the <sleep> command once. Which was the key word.

                Thanking you,
                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 #18 on: April 15, 2009, 02:15:19 AM »
                having two key words in a ambiguous sentence doesn't disambiguate the sentence.
                I was trying to dereference Null Pointers before it was cool.

                mroilfield



                  Mentor
                • Thanked: 42
                  • Yes
                  • Yes
                • Computer: Specs
                • Experience: Experienced
                • OS: Windows 11
                Re: General format for openning several files in a single <BATCH FILE>
                « Reply #19 on: April 15, 2009, 06:09:49 AM »
                Sir, my question is as clear as crystal. If you know English you will understand,otherwise never.

                Excuse me If I hart you anyway.

                Apparently you don't know English very well or you don't know how to double check your spelling.

                I think you wanted to say  "Excuse me if I HURT you in any way."
                You can't fix Stupid!!!

                macdad-



                  Expert

                  Thanked: 40
                  Re: General format for openning several files in a single <BATCH FILE>
                  « Reply #20 on: April 15, 2009, 06:18:47 AM »
                  spdCHF,

                  We all are very helpful and friendly to help with problems. But all BC and Dias wanted was just a simple, to the point question. And don't blame Carbon, BC, and Dias; their helpful as well(and actually more experienced). But relating to what Carbon said that it can't be done, I sometimes say no to alot of requests regarding batch scripts. Since Batch can't do a lot of "Magical" actions.

                  If you dont know DOS, you dont know Windows...

                  Thats why Bill Gates created the Windows NT Family.

                  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 #21 on: April 15, 2009, 06:24:49 AM »
                  Also creating multiple accounts all requesting assistance with similar malicious-related activities tends to beckon at least a little malice.
                  I was trying to dereference Null Pointers before it was cool.

                  spdCHF

                    Topic Starter


                    Rookie

                    Thanked: 1
                    Re: General format for openning several files in a single <BATCH FILE>
                    « Reply #22 on: April 15, 2009, 07:47:16 AM »
                    spdCHF,

                    We all are very helpful and friendly to help with problems. But all BC and Dias wanted was just a simple, to the point question. And don't blame Carbon, BC, and Dias; their helpful as well(and actually more experienced). But relating to what Carbon said that it can't be done, I sometimes say no to a lot of requests regarding batch scripts. Since Batch can't do a lot of "Magical" actions.



                    Sir, I  am very sorry, if I hurt them anyway, I apologize. Thanks a lot for your kind recommendation.

                     With most regards,
                      spdCHF