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

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

    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

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

      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

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

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

                  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

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

                    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

                      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.

                              https://www.robotecnik.com freelance robots, PLC and CNC programmer.

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