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

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

                              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

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

                                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

                                  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.

                                          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