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 32 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
    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
                  • 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
                    Wartickler
                    wrote on last edited by
                    #81

                    We use them a lot in SharePoint production deployments. Once our app is ready for prod we package the PS in bat files so the sys admins can just double-click and install.

                    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
                      Josh Riedmiller
                      wrote on last edited by
                      #82

                      I prefer to use PERL to do the heavy stuff but almost always wrap a batch file around it to pass arguments.

                      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
                        reilly96
                        wrote on last edited by
                        #83

                        If by .bat files you mean .cmd files I write and use them all the time

                        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
                          PRISMAY
                          wrote on last edited by
                          #84

                          I still use them quite a bit although I use the .cmd files. ;) I use them from anything like running automated encoding on multiple video files to running automated deployment projects on our servers. I am, however, slowly moving towards WSH just because I can use c# but it'll be a while before I'm there and I don't see ever being weaned competely off of the command prompt as it offers too many handy and quick utillities. :) Just another old fogie I guess.

                          ------- PRISMAY

                          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
                            RubberSideDown
                            wrote on last edited by
                            #85

                            Been trolling for a while; first post (be gentle). I'm 30 and am a HUGE fan of .bat. I manage a small rogue IT shop full of developers WAY smarter & more talented than I'll ever be, but once in a blue moon I stick them with a task & they fire up all sort of fancy VB & other stuff I don't understand only to end up with a program that has more lines than I want to read & is typically less reliable! Long live the DOS (ok fine... command prompt). TIP: .bat works REALLY well in SSIS packages; I assume shell does too, but I haven't found a need to venture outside my comfort zone.

                            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
                              matt314hew
                              wrote on last edited by
                              #86

                              I am currently writing them at my new job. Mainly they are small things that help me with what I am doing instead of having to manually delete logs. I also wrote them at my old job to do the following: Delete a folder on the Build Server, Get Latest Code, Build the code, and then deploy it.

                              1 Reply Last reply
                              0
                              • T torst3n

                                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 Offline
                                S Offline
                                Steven M Hunt
                                wrote on last edited by
                                #87

                                Same here, I'm a young guy and I just wrapped up writing some serious bat files to replace the old mainframe JCL we had hanging around; the government agency I work for (hint: we sent people to the Moon that one time) just turned off our last mainframe this month. -- Steven

                                E K 2 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

                                  S Offline
                                  S Offline
                                  Stefan_Lang
                                  wrote on last edited by
                                  #88

                                  Recently wrote some .bat files to automate a nightly build. I know there may be better tools for such tasks, but I still remember bits of DOS from my youth, and therefore can't be bothered to learn another script language. Over the decades I've used various script languages, starting from (C=ommodore) Basic, over BS 2000, Amiga-DOS, Unix sh and bsh, MS-DOS, and a few others, but of these I've only used MS-DOS over the past years. Not because it's so good, but simply because that way I don't need to learn yet another script language :)

                                  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
                                    PhilLenoir
                                    wrote on last edited by
                                    #89

                                    Yes Dave, but thenI'm another old fart! I use them to ease deployment of new application versions without kicking users out. I drop the new version in the folder, update the BAT file and users pick up the new version on next launch. I also use them to copy new versions to remote sites using a control text file to mark installation (we have lots of sites with slow or unreliable radio links). Now, in the good old days of DOS, I had complete menuing systems running off of BAT files! :-D Phil

                                    Life is like a s**t sandwich; the more bread you have, the less s**t you eat.

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

                                      I still do, just to make my job easier. I've always liked them since I developed my own system with my father's TRS-80 Model I. Setup so, the OS booted and started up BASIC to run games or anything else automatically. They didn't have anything like that long ago... you had to type everything by hand. Now I mainly use it to call my apps to process files and use the batch file to copy the file to the final destination. Multiple projects that interconnect you know. :laugh: :laugh:

                                      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
                                        PSU Steve
                                        wrote on last edited by
                                        #91

                                        My main project is a "self updating" application, but every once in a while we do something that needs a "special" deployment method. I found that a simple BAT file does the trick and prevents the users from royally screwing stuff up...

                                        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

                                          X Offline
                                          X Offline
                                          xperroni
                                          wrote on last edited by
                                          #92

                                          32 and I still do. Id' rather use Python, but sometimes an script is intended for someone else's use, and there are lots of Windows XP boxes around here, so I have to go with the lowest common denominator.

                                          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