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 1 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

    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

                        M Offline
                        M 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
                          • 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

                            R Offline
                            R Offline
                            R Giskard Reventlov
                            wrote on last edited by
                            #53

                            If I have a small repetative task I'll whip up a cmd file. Why not? Simple is best.

                            "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me

                            1 Reply Last reply
                            0
                            • M Mike Hankey

                              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 Offline
                              L Offline
                              Lost User
                              wrote on last edited by
                              #54

                              It's really just a batch job, compiling each source file with the options you want. The results (usually .obj files) are then bound to gether by the linker, again using the linking options you specify. The result should be some kind of executable. The rest of the makefile just deals with finding the required libraries, cleaning up or deplaying your compiled executable to whereever you want to have it. It's really just a simple script to describe the build process. Don't let all those options or fancy (but not really important) features like including other makefiles confuse you. Just take a look at the gcc documentation and try it step by step with a very simple test project with, let's say, two source file. Once you have that working, you can go on and try out all kinds of options to see what effect they have.

                              I'm invincible, I can't be vinced

                              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
                                gavindon
                                wrote on last edited by
                                #55

                                I have been known to write one or two. and I have not been in the IT business all that long..they just have their uses and if it aint broke, don't fix it.

                                It used to be what you know that got you ahead, then it was who you know, now its what you know about who you know that gets you ahead. Be careful which toes you step on today, they might be connected to the foot that kicks your butt tomorrow. You can't scare me, I have children.

                                1 Reply Last reply
                                0
                                • D Dalek Dave

                                  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 Offline
                                  R Offline
                                  richard_k
                                  wrote on last edited by
                                  #56

                                  Heh.. first job at a large computer firm I had was writing job decks and algol programs at Unisys. With punch cards! Cards were on their way out when I did this.. but you could still find folks with large card decks on their desks.

                                  S E L U 4 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

                                    R Offline
                                    R Offline
                                    richard_k
                                    wrote on last edited by
                                    #57

                                    I do, but I'm from fogey land just like you. To date I've written in bash, Korn shell, sh, .bat for windows, perl, etc.. just so much.. and that is just the scripting I've done (less than 1% of my total time at my job). At one time I knew all the intricacies.. but that is going on 15 years ago now.. my current most used would be bash... but I still find cause to occasionally write a short .bat script for automation of compilations, etc. (just last year actually).

                                    1 Reply Last reply
                                    0
                                    • D David Crow

                                      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 Offline
                                      R Offline
                                      richard_k
                                      wrote on last edited by
                                      #58

                                      .bat files + the scheduler in later versions of windows is perfect for a lot of tasks..

                                      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

                                        C Offline
                                        C Offline
                                        CPallini
                                        wrote on last edited by
                                        #59

                                        That means you liked more Unix scripts than the feeder bib.

                                        Veni, vidi, vici.

                                        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
                                          clientSurfer
                                          wrote on last edited by
                                          #60

                                          At my current job I'm having to alot of "bridging" work between .NET and a couple of Linux servers running MySQL, PHP and java. Believe you me in order to accomplish this I have to pull out all sorts of old tricks from up my sleeve: .bat files, PowerShell, bash scripts, baling wire and spit - everything short of polling some mounted volume on a mainframe at regular intervals to pickup some "flag file" that gets left there! WCF? P'shaw :laugh:

                                          "... having only that moment finished a vigorous game of Wiff-Waff and eaten a tartiflet." - Henry Minute  "...who gives a tinker's cuss?" - Dalek Dave  "Let's face it, after Monday and Tuesday, even the calendar says WTF!" - gavindon   It's plain that they do not yet know what true fear really is. - JSOP 2011

                                          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