Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Programming Question

Programming Question

Scheduled Pinned Locked Moved The Lounge
questionxml
161 Posts 124 Posters 23 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Dalek Dave

    Who (apart from my good self) still writes .bat files? Are they common or am I one of the old fogies that still employs his DOS knowledge?

    --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

    K Offline
    K Offline
    krumia
    wrote on last edited by
    #33

    We do, for automating lots of things. Setting up development environments, client installations/deployments. That old bats will not die for a while.

    1 Reply Last reply
    0
    • D Dalek Dave

      Who (apart from my good self) still writes .bat files? Are they common or am I one of the old fogies that still employs his DOS knowledge?

      --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #34

      I usually prefer using .bat files to do repetitive and trivial things. Btw, shouldn't this post be titled "Scripting question"?

      D 1 Reply Last reply
      0
      • D Dalek Dave

        Who (apart from my good self) still writes .bat files? Are they common or am I one of the old fogies that still employs his DOS knowledge?

        --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

        E Offline
        E Offline
        EbenY42
        wrote on last edited by
        #35

        All the time ... started calling them .cmd a couple of year ago :-D

        1 Reply Last reply
        0
        • D Dalek Dave

          Who (apart from my good self) still writes .bat files? Are they common or am I one of the old fogies that still employs his DOS knowledge?

          --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

          C Offline
          C Offline
          Corporal Agarn
          wrote on last edited by
          #36

          I write them on occasion. Then again I too am an "old fogy". :)

          1 Reply Last reply
          0
          • D Dalek Dave

            Who (apart from my good self) still writes .bat files? Are they common or am I one of the old fogies that still employs his DOS knowledge?

            --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #37

            Dalek Dave wrote:

            Who (apart from my good self) still writes .bat files?

            I do, but only basic stuff :)

            IronScheme
            ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

            D 1 Reply Last reply
            0
            • L Lost User

              I usually prefer using .bat files to do repetitive and trivial things. Btw, shouldn't this post be titled "Scripting question"?

              D Offline
              D Offline
              Dalek Dave
              wrote on last edited by
              #38

              You make a good point!

              --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

              1 Reply Last reply
              0
              • L leppie

                Dalek Dave wrote:

                Who (apart from my good self) still writes .bat files?

                I do, but only basic stuff :)

                IronScheme
                ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                D Offline
                D Offline
                Dalek Dave
                wrote on last edited by
                #39

                DOS stuff, not Basic stuff surely :)

                --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

                1 Reply Last reply
                0
                • D Dalek Dave

                  Who (apart from my good self) still writes .bat files? Are they common or am I one of the old fogies that still employs his DOS knowledge?

                  --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

                  J Offline
                  J Offline
                  Joan M
                  wrote on last edited by
                  #40

                  I'm BATman! :rolleyes: I still do it DD! and they work nice... truly I've always found it confusing to fiddle with vbs...

                  [www.tamautomation.com] Robots, CNC and PLC machines for grinding and polishing.

                  1 Reply Last reply
                  0
                  • D Dalek Dave

                    Who (apart from my good self) still writes .bat files? Are they common or am I one of the old fogies that still employs his DOS knowledge?

                    --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

                    G Offline
                    G Offline
                    GuyThiebaut
                    wrote on last edited by
                    #41

                    I use them for moving a large number of files when working on version control...

                    “That which can be asserted without evidence, can be dismissed without evidence.”

                    ― Christopher Hitchens

                    1 Reply Last reply
                    0
                    • L Lost User

                      What's odd about them?

                      MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                      P Offline
                      P Offline
                      Pete OHanlon
                      wrote on last edited by
                      #42

                      I discard the even ones.

                      *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

                      "Mind bleach! Send me mind bleach!" - Nagy Vilmos

                      My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                      1 Reply Last reply
                      0
                      • C CPallini

                        Right: we young people just write a bunch of shell scripts or awk ones.

                        Veni, vidi, vici.

                        P Offline
                        P Offline
                        Pete OHanlon
                        wrote on last edited by
                        #43

                        Heck, I was writing Unix scripts before you were born.

                        *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

                        "Mind bleach! Send me mind bleach!" - Nagy Vilmos

                        My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                        D C 2 Replies Last reply
                        0
                        • P Pete OHanlon

                          I have been known to write the odd .bat file, as well as PowerShell scripts.

                          *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

                          "Mind bleach! Send me mind bleach!" - Nagy Vilmos

                          My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                          E Offline
                          E Offline
                          Eytukan
                          wrote on last edited by
                          #44

                          Though I'm supposed to forget .bats long before, I continue to stay in touch with them, at least to brag I'm a legendary coder. I've observed it many times, people who write .bat files are looked up as smart coders And the one that writes a little command prompt .exe in C++ or .net look dumb :-D Anyway I write the basic scripts, but when it gets complex, I ring up the old dino Gary :)

                          Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.

                          1 Reply Last reply
                          0
                          • P Pete OHanlon

                            Heck, I was writing Unix scripts before you were born.

                            *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

                            "Mind bleach! Send me mind bleach!" - Nagy Vilmos

                            My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                            D Offline
                            D Offline
                            Dalek Dave
                            wrote on last edited by
                            #45

                            It's a shame Henry isn't here He could tell us of his days poking holes in cards!

                            --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

                            R I C K L 5 Replies Last reply
                            0
                            • D Dalek Dave

                              Who (apart from my good self) still writes .bat files? Are they common or am I one of the old fogies that still employs his DOS knowledge?

                              --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

                              J Offline
                              J Offline
                              Jochen Arndt
                              wrote on last edited by
                              #46

                              I do so occasionally using GNU utilities for Windows (UnxUtils).

                              1 Reply Last reply
                              0
                              • D Dalek Dave

                                Who (apart from my good self) still writes .bat files? Are they common or am I one of the old fogies that still employs his DOS knowledge?

                                --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

                                A Offline
                                A Offline
                                Alberto Bar Noy
                                wrote on last edited by
                                #47

                                I call them .cmd files but I use them a lot.

                                Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

                                1 Reply Last reply
                                0
                                • D Dalek Dave

                                  Who (apart from my good self) still writes .bat files? Are they common or am I one of the old fogies that still employs his DOS knowledge?

                                  --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

                                  H Offline
                                  H Offline
                                  hairy_hats
                                  wrote on last edited by
                                  #48

                                  Not for a good long while, anything more than a directory listing and I write a program.

                                  1 Reply Last reply
                                  0
                                  • D Dalek Dave

                                    Who (apart from my good self) still writes .bat files? Are they common or am I one of the old fogies that still employs his DOS knowledge?

                                    --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

                                    P Offline
                                    P Offline
                                    PIEBALDconsult
                                    wrote on last edited by
                                    #49

                                    Indubitably. And I still spend most of my day in a DOS box.

                                    1 Reply Last reply
                                    0
                                    • D Dalek Dave

                                      Who (apart from my good self) still writes .bat files? Are they common or am I one of the old fogies that still employs his DOS knowledge?

                                      --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

                                      D Offline
                                      D Offline
                                      David Crow
                                      wrote on last edited by
                                      #50

                                      Dalek Dave wrote:

                                      Who (apart from my good self) still writes .bat files?

                                      I do. In some ways, they can't be beat.

                                      "One man's wage rise is another man's price increase." - Harold Wilson

                                      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                                      "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

                                      R 1 Reply Last reply
                                      0
                                      • L Lost User

                                        A makefile is nothing more than a batch file with a command line to call the compiler for each source file, then one or more command lines calling the linker and perhaps some commands to deploy or copy the results. An IDE usually lets you edit all kinds of compiler and linker options and then generates the makefile from the contents of your project and those options. Or you can simply write the makefile yourself with any simple editor like wordpad. You just have to know how to call the compiler and linker and what options and parameters your compiler needs or supports. It's just like writing command lines in the console. The makefile only saves you from typing all this every time you want to build your project. I guess, all this should be documented in the compiler's and linker's documentation. Edit: Usually the compiler includes some tool to process the makefile. My simple C compiler for old 8 bit machines does not, so I use plain vanilla .BAT files, which does not really make much of a difference. Whenever I want to build my project, I simply call something like 'make.bat' at the command line and look what kind of results I get in the in the console. Edit^2: I just dug this[^] out in MSDN. It describes how to build from the command line with makefiles and NMAKE. NMAKE is a little more powerful than a simple batch and the commands are not simple command lines anymore, but it's still very much the same idea.

                                        I'm invincible, I can't be vinced

                                        Mike HankeyM Offline
                                        Mike HankeyM Offline
                                        Mike Hankey
                                        wrote on last edited by
                                        #51

                                        The IDE uses gcc for compiling and linking but the makefile is really a generic file used to build the code. The problem I have is understanding the commands. For some reason haven't been able to wrap my little brain around it.

                                        VS2010/AVR Studio 5.0 ToDo Manager Extension

                                        L 1 Reply Last reply
                                        0
                                        • D Dalek Dave

                                          Who (apart from my good self) still writes .bat files? Are they common or am I one of the old fogies that still employs his DOS knowledge?

                                          --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] English League Tables - Live

                                          W Offline
                                          W Offline
                                          wizardzz
                                          wrote on last edited by
                                          #52

                                          Working on one right now actually. They use em at my new job, but in all fairness, there is a lot of batch processing being done.

                                          "I have a theory that the truth is never told during the nine-to-five hours. " — Hunter S. Thompson

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups