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

    W Offline
    W Offline
    W Balboos GHB
    wrote on last edited by
    #13

    Still used around here for some server-to-client installs. In fact, it's even to be used for a one-shot dumb update. They do what they're supposed to do and are easy to write.

    "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

    "As far as we know, our computer has never had an undetected error." - Weisert

    "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

    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

      M Offline
      M Offline
      Mike Hankey
      wrote on last edited by
      #14

      Dalek Dave wrote:

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

      I stray occasionally.

      VS2010/AVR Studio 5.0 ToDo Manager Extension

      1 Reply Last reply
      0
      • L Lost User

        Mostly when I write C programs for old 8 bit computers. The BAT then is a kind of simple makefile (another thing the youngsters usually don't know anything about) and also handles the deployment of the compiled program to the emulator(s).

        I'm invincible, I can't be vinced

        M Offline
        M Offline
        Mike Hankey
        wrote on last edited by
        #15

        I've been using the make file that gets automagically created by the AVRStudio 5.1 but am looking to tweek, or just generally learn more about them. I googled quite a bit but have not found any good tutorials any sugs?

        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

          R Offline
          R Offline
          RugbyLeague
          wrote on last edited by
          #16

          I write Windows services which run .Bat files :-O

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

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

            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 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
              #18

              I write the odd one now and agian, well cmd files anyway, I tend to use a few that I keep around more than writing me ones though - like moving large numbers of files around and renaming etc. Right tool for the right job, as my father used to say. Not sure I liked it that he called me a tool, but there you go.

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

              D 1 Reply Last reply
              0
              • D Dalek Dave

                Yes Pete, but alas you are venerable and aged, like me. I bet them young whippersnappers don't!

                --------------------------------- 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
                Pete OHanlon
                wrote on last edited by
                #19

                I prefer to think that we are seasoned and debonairre.

                *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 1 Reply Last reply
                0
                • P Pete OHanlon

                  I prefer to think that we are seasoned and debonairre.

                  *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
                  #20

                  You're Hired!

                  --------------------------------- 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 Lost User

                    I write the odd one now and agian, well cmd files anyway, I tend to use a few that I keep around more than writing me ones though - like moving large numbers of files around and renaming etc. Right tool for the right job, as my father used to say. Not sure I liked it that he called me a tool, but there you go.

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

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

                    _Maxxx_ wrote:

                    Not sure I liked it that he called me a tool, but there you go.

                    :-D

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

                      T Offline
                      T Offline
                      Tim Groven
                      wrote on last edited by
                      #22

                      I don't by choice, but have to at work to support old code that uses them, and code from another company that uses them.

                      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

                        S Offline
                        S Offline
                        Simon_Whale
                        wrote on last edited by
                        #23

                        I've used it twice last year, took me a while to remember how to pass arguments in though.

                        Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

                        D 1 Reply Last reply
                        0
                        • M Mike Hankey

                          I've been using the make file that gets automagically created by the AVRStudio 5.1 but am looking to tweek, or just generally learn more about them. I googled quite a bit but have not found any good tutorials any sugs?

                          VS2010/AVR Studio 5.0 ToDo Manager Extension

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

                          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 G 2 Replies Last reply
                          0
                          • S Simon_Whale

                            I've used it twice last year, took me a while to remember how to pass arguments in though.

                            Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

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

                            I am lazy. I could use a streamwriter within the code, call it and then discard it. But I don't. I just write the .bat and .txt and get call them within a shell in c# or vb. Bad habits die hard!

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

                            S 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

                              M Offline
                              M Offline
                              megaadam
                              wrote on last edited by
                              #26

                              Rarely I do, yes. But I don't bat an eye when I have to.

                              ..................... Life is too shor

                              1 Reply Last reply
                              0
                              • D Dalek Dave

                                I am lazy. I could use a streamwriter within the code, call it and then discard it. But I don't. I just write the .bat and .txt and get call them within a shell in c# or vb. Bad habits die hard!

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

                                S Offline
                                S Offline
                                Simon_Whale
                                wrote on last edited by
                                #27

                                I used it to run a XLST to PDF conversion application, using the commandline tool it take around 8 milliseconds to create the PDF and with .NET managed code upto 15 seconds decpending on the report. So it was a no brainer moment on which to use.

                                Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

                                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

                                  S Offline
                                  S Offline
                                  S Houghtelin
                                  wrote on last edited by
                                  #28

                                  Funny you should ask, I didn't write any but I got my new desktop this morning, and and used a couple to set up some of my complier envirionments. And I used the one to show hidden devices in the device manager to clean the crud out.

                                  It was broke, so I fixed it.

                                  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
                                    Rage
                                    wrote on last edited by
                                    #29

                                    Yes, I keep modifying my "Autoexec.bat". And my "Config.sys". :-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

                                      R Offline
                                      R Offline
                                      Rage
                                      wrote on last edited by
                                      #30

                                      He he - list of files in the current directory ? Nothing quicker than:

                                      dir /b >> list.txt

                                      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

                                        S Offline
                                        S Offline
                                        Slacker007
                                        wrote on last edited by
                                        #31

                                        Dalek Dave wrote:

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

                                        I do from time to time. Some things, never die.

                                        "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                                        "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011) "It is the celestial scrotum of good luck!" - Nagy Vilmos (2011)

                                        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

                                          B Offline
                                          B Offline
                                          BobJanova
                                          wrote on last edited by
                                          #32

                                          I generally only use them for trivial things, otherwise I'll write a short command line C# tool. I like the security of using a real language, and the .Net Framework's always in memory on my machine anyway so execution time is trivial.

                                          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