Process Multi .bat files from the cmd line?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • A3Y55
    New Member
    • Feb 2008
    • 3

    Process Multi .bat files from the cmd line?

    Hi,

    Please excuse my lack of knowledge as I'm a 3D artist and not from a programming background.

    I have a large number of .bat file which have been generated from Rendering out of Maya (3D Application).

    Usually I would process the bat files from within maya's script editor which would generate the Photoshop images.

    The down side is it ties my PC up and I cant really do anything while these are processing .. and it take quiet a while.

    I have another PC which doesn't have Maya but I can process the bat files by double clicking each one. Problems is theres well over 10,000 images to process.

    Is there a way I can automate this process from the cmd line rather than having to click on each individual file in oder to get the bat file to run?

    Any help would be much appreciated

    Thanks

    Wayne
  • AmberJain
    Recognized Expert Contributor
    • Jan 2008
    • 922

    #2
    You can do what you by creating another batch file (suppose "abc.bat") and mentioning the names of all the batch files (which you need to run) in it.
    A similar sample batch file is shown below-------->

    _______________ _______________ _______________ _______________ _____
    cd\
    c:
    cd docume~1
    cd user
    cd desktop
    cd folder
    file1.bat
    file2.bat
    file3.bat
    file4.bat
    exit

    _______________ _______________ _______________ _______________ _____
    If you don't know to create a batch file, do tell me. I will then post a reply with a detailed description of creating a batch file.
    If you face any other problems, do tell me. I will help you troubleshoot them.
    _______________ _______________ _______________ _______________ _____
    HOPE THIS HELPS.......... .............

    Comment

    • A3Y55
      New Member
      • Feb 2008
      • 3

      #3
      Hi

      Thanks for the Help.

      Unfortunately I've no idea how to create a bat file. If you can give me detailed instructions that would be fantastic.

      This info may be irrelevant to you but, we used a file naming convention due to the high volume and typically this is how they look:

      hat_acc.hats_ac c_008.Super_Hel met_Mask.Super_ Helmet_01.AV.ba t
      tops.tops_s.Den im_Jacket_Mask. Denim_Jacket_Bl ue.E.bat
      etc...etc


      Thanks

      Comment

      • AmberJain
        Recognized Expert Contributor
        • Jan 2008
        • 922

        #4
        Originally posted by A3Y55
        This info may be irrelevant to you but, we used a file naming convention due to the high volume and typically this is how they look:

        hat_acc.hats_ac c_008.Super_Hel met_Mask.Super_ Helmet_01.AV.ba t
        tops.tops_s.Den im_Jacket_Mask. Denim_Jacket_Bl ue.E.bat
        etc...etc
        Well, I am unable to make out anything from your this reply.........

        Can you please be more specific to explain me the file naming convention you are using so that I can help you. I cannot understand it at all.
        Tell me in detail file naming convention you are using. Then I will help you.
        _______________ _______________ _______________ _______________ _____
        Waiting for your reply.......... .....

        Comment

        • harshadd
          New Member
          • Dec 2007
          • 180

          #5
          Originally posted by A3Y55
          Hi

          Thanks for the Help.

          Unfortunately I've no idea how to create a bat file. If you can give me detailed instructions that would be fantastic.

          This info may be irrelevant to you but, we used a file naming convention due to the high volume and typically this is how they look:

          hat_acc.hats_ac c_008.Super_Hel met_Mask.Super_ Helmet_01.AV.ba t
          tops.tops_s.Den im_Jacket_Mask. Denim_Jacket_Bl ue.E.bat
          etc...etc


          Thanks
          Hi I am Harshad from INDIA.(Marathi manus)

          I hope you have all BAT files created in a same folder (directory).
          start a command prompt (DOS prompt)
          Learn few BASIC DOS commands to help your self
          DIR - to list files in a current directory.
          CD - to change the directory.
          CLS - TO CLEAR THE SCREEN
          on any dos command if you need more help just type that command followed by forward slash and question mark. then ENTER
          eg.
          dir /? - you will get help on DIR command
          cd /? - you will get help on CD command
          .... and so on.

          to Execute all BAT files from current directory
          type below 1 command and enter

          FOR %X IN (*.BAT) DO %X


          Rgds
          HND

          Comment

          • AmberJain
            Recognized Expert Contributor
            • Jan 2008
            • 922

            #6
            Originally posted by harshadd
            Hi I am Harshad from INDIA.(Marathi manus)

            I hope you have all BAT files created in a same folder (directory).
            start a command prompt (DOS prompt)
            Learn few BASIC DOS commands to help your self
            DIR - to list files in a current directory.
            CD - to change the directory.
            CLS - TO CLEAR THE SCREEN
            on any dos command if you need more help just type that command followed by forward slash and question mark. then ENTER
            eg.
            dir /? - you will get help on DIR command
            cd /? - you will get help on CD command
            .... and so on.

            to Execute all BAT files from current directory
            type below 1 command and enter

            FOR %X IN (*.BAT) DO %X


            Rgds
            HND
            _______________ _______________ _______________ _______________ _____
            GOOD WORK HARSHADD....... ............... ..
            I learned something really useful from this post. So thanks for your reply.

            Comment

            • A3Y55
              New Member
              • Feb 2008
              • 3

              #7
              Hey thanks!!!

              Thats just what I was looking for.

              Much appreciated!!

              cheers

              Wayne

              Comment

              • harshadd
                New Member
                • Dec 2007
                • 180

                #8
                Originally posted by A3Y55
                Hey thanks!!!

                Thats just what I was looking for.

                Much appreciated!!

                cheers

                Wayne
                Good, But I suggest you learn basic DOS to help out yourself and save the time in writing on blogs...HND

                Comment

                Working...