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
    GenJerDan
    wrote on last edited by
    #61

    All the time. Well, a lot of the time. And .cmd files (which are close enough, right?)

    No dogs or cats are in the classroom. My Mu[sic] My Films My Windows Programs, etc.

    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
      Chris Losinger
      wrote on last edited by
      #62

      i do. shell scripts, and VBS scripts and .JS scripts, too. whatever it takes.

      image processing toolkits | batch image processing

      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
        Steve Mayfield
        wrote on last edited by
        #63

        I wrote and used one just yesterday - to compare the differences between two different project source file directories :thumbsup: I almost always have one or more cmd windows open on my desktop.

        Steve _________________ I C(++) therefore I am

        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
          Brisingr Aerowing
          wrote on last edited by
          #64

          I use .bat files sometimes. Usually when I am writing a java program over the course of several shutdowns and startups and unexpected crashes (not too often), and don't want to type the compile and run commands over and over and over and over and over and ... well, you get the idea.

          C#: public void GetOffOfTheComputer(){ throw new System.NotImplementedException(); } VB: Public Sub GetOffTheComputer() Throw New NotImplementedException() End Sub

          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
            Gary R Wheeler
            wrote on last edited by
            #65

            Been there, do that fairly regularly. Our automated build process is a combination of an MFC GUI front end, a VBScript script, several batch files, and our tool chain (Visual Studio, Inno Setup, Nero, etc.). The batch files are useful for redirecting output to build logs. It sounds horrible, but it's a case of applying the right tool for each job in the process. I also use batch files for a number of administrative things, scheduled tasks, and so on.

            Software Zen: delete this;

            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
              Rajesh Krishnamoorthy
              wrote on last edited by
              #66

              There are lot :) Mostly to copy files from FTP

              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

                A Offline
                A Offline
                Atique Rahman
                wrote on last edited by
                #67

                Me too have adopted powershell. It's funny that my first fun with computers started with batch files.. It's also funny how I came to computer science growing up in a remote country side area where a computer was not available within the perimeter of 7 km. I collected a book of norton which introduced me to computers.. I was just imagining how computers look like.. how different components work and how I will deal with this magnificent invention if I stand face to face. :) A year later I bought a book of DOS and my .bat started.

                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
                  Locust2000
                  wrote on last edited by
                  #68

                  I do sometimes. When you want to push out a few commands to a batch of XP PC's through LogMeIn Central it's hard to beat a .bat file for ease, simplicity and compatability(powershell not always installed).

                  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
                    Riaan Booyzen
                    wrote on last edited by
                    #69

                    I still find use and write one once a week or so just on my dev machine. I use powershell on the servers.

                    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
                      MustrumRidcully
                      wrote on last edited by
                      #70

                      I still use them as part of scripting the installation builder process. (That process also uses Shell Scripts on Linux and Mac, ANT and - this is really shameful ;) - NSIS) I've learned a lot of magic about .bat files that I never expected them to be able to do!

                      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
                        Pete B37
                        wrote on last edited by
                        #71

                        I still use them because I couldn't be bothered (win32) to get eclipse to find the FLTK libraries to build under mingw/GCC so I wrote a build script, as I might in Bash under linux so every time I add a source, I have to add a another line and add entry to linker

                        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
                          Member 2053006
                          wrote on last edited by
                          #72

                          Three days ago. Batch file to delete WoW cache before starting the game. End of last month - batch file for running my entry into Facebook Hacker Cup (failed!) <----- Geek!

                          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
                            smcnulty2000
                            wrote on last edited by
                            #73

                            Writing them for a current job. I had to re-learn some things. Although I'm using the cmd extension instead of .bat. There is a need to use something that acts as glue in a complex system. In this case it had to be something that would be easy to describe in documentation to people downstream and that I could be sure would work in all the places I need it. Some of them are run from inside of T-SQL. Others are run on schedule. I have one that monitors a set of internal web sites and looks for key words to see if they are up or not. Another that's looking for a change in a particular directory. Supposedly I'll figure out how to do all this with power shell one day but for now I'm using batch files.

                            _____________________________ Give a man a mug, he drinks for a day. Teach a man to mug... The difference between an ostrich and the average voter is where they stick their heads.

                            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
                              tsyuan02231
                              wrote on last edited by
                              #74

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

                                M Offline
                                M Offline
                                Magnamus
                                wrote on last edited by
                                #75

                                I'm still working in CP/M

                                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
                                  CHill60
                                  wrote on last edited by
                                  #76

                                  I'd be lost without them (well our systems would be). Hmm... hadn't realised how much of a dinosaur I am until I just glanced at my taskbar and spotted two minimised dos boxes CMD windows.

                                  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
                                    sweMesSer
                                    wrote on last edited by
                                    #77

                                    Though I'm still young (well pretty young at least, reaching in on 30). I have written some in order to get DOS to do things for me. However, I can't really say I have utilized them in the last 10 years or so. Nowadays I usually create some command prompt-exe or some graphical windows forms/WPF-tool. This since it makes it easier to improve and extend into something useful that other people can use. What do you use .bat-files for and why do that instead of 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

                                      R Offline
                                      R Offline
                                      Robert Chafer
                                      wrote on last edited by
                                      #78

                                      I still use batch files. I used one yesterday to rename a large group of files. I processed file filenames with a Notepad++ macro and 'massaged' them into a set of copy commands (copied to a safe location). We still use them quite a lot for controlling the build process of our compiler...

                                      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

                                        T Offline
                                        T Offline
                                        torst3n
                                        wrote on last edited by
                                        #79

                                        23 and writing them bats, boss. mainly cause I think it's faster then ps scripting and reason is cause I usually need to check if a task is done before I start another one.

                                        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

                                          K Offline
                                          K Offline
                                          KLPounds
                                          wrote on last edited by
                                          #80

                                          due to the awkward security settings at my work, PS scripts are blocked, WSH scripting is hit or miss, but I can batch script till the screen turns blue. Sometimes it's just the quick and dirty tool for the job. Guess I'm just of the right era as I was a DOS mule as a child learning computers. ASCI based menu systems and command prompt was how my dad rolled. All that point and click and eye candy stuff was for my angsty teenage years.

                                          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