Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Question about using batchfiles in Windows XP  (Read 19343 times)

0 Members and 1 Guest are viewing this topic.

lufkincy

    Topic Starter


    Rookie

    Question about using batchfiles in Windows XP
    « on: September 05, 2009, 04:45:00 PM »
    Some years ago I had to switch to Windows from DOS. While I was pretty competent in DOS, I've never gained a lot of competence in Windows.

    In DOS I made extensive use of batchfiles. Is there a way to use batchfiles in XP? If so, where can I find the syntax and how to activate it from within XP.

    Thanks...

    Cy Stapleton
    Lufkin, TX

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: Question about using batchfiles in Windows XP
    « Reply #1 on: September 05, 2009, 04:59:43 PM »
    Yes, and many do. There are st rill some things that are just SO easy to do in a batch file that there is little point in trying to change over to a Windows script.
    Look here:
    http://www.computerhope.com/batch.htm

    billrich

    • Guest
    Re: Question about using batchfiles in Windows XP
    « Reply #2 on: September 05, 2009, 05:00:03 PM »
    The command prompt screen and area of XP will run all of you old dos programs.

    Post the code of your best Dos program here and I will see how well it runs on my XP Pro machine.
    « Last Edit: September 05, 2009, 05:50:33 PM by billrich »

    Dusty



      Egghead

    • I could if she would, but she won't so I don't.
    • Thanked: 75
    • Experience: Beginner
    • OS: Windows XP
    Re: Question about using batchfiles in Windows XP
    « Reply #3 on: September 05, 2009, 05:11:25 PM »
    NT Command Line commands are listed here..  Click on any command to view the syntax.



    One good deed is worth more than a year of good intentions.

    lufkincy

      Topic Starter


      Rookie

      Re: Question about using batchfiles in Windows XP
      « Reply #4 on: September 05, 2009, 07:18:42 PM »
      Thanks. I will check that out now.

      cy

      billrich

      • Guest
      Re: Question about using batchfiles in Windows XP
      « Reply #5 on: September 05, 2009, 08:53:08 PM »
      lufkincy,

      Where is an example of your Dos code ( your batch file )?  Please post.

      lufkincy

        Topic Starter


        Rookie

        Re: Question about using batchfiles in Windows XP
        « Reply #6 on: September 06, 2009, 10:51:33 AM »
        Hi Bill: Thanks for the reply. Unfortunately I do not have any of my old DOS files left. For a while I kept both DOS and Windows on my system, but when I finally stopped using DOS and when I bought a new system, I copied all of my Windows data off the old system, F-disked it and gave it to a local Christian school.

        I have shortcut links on my desktop to the applications I use often, but what I want the batchfiles for is to cut down on my keystrokes. As an example, If I am scanning a large number of photos to go on my website, I can click on the shortcut on my desktop to go to my website, but I want a batchfile that will open my scanner, scan the photo, let me name the photo, then save the photo in a designated folder in FrontPage. Then loop and do the same thing for the next photo. I would like a shortcut to that batchfile on my desktop.

        When I am scanning I will often scan 50 to 100 photos and other items at a time.

        I use XP

        Thanks again...

        cy

        Helpmeh



          Guru

        • Roar.
        • Thanked: 123
          • Yes
          • Yes
        • Computer: Specs
        • Experience: Familiar
        • OS: Windows 8
        Re: Question about using batchfiles in Windows XP
        « Reply #7 on: September 06, 2009, 11:02:27 AM »
        I don't think you can scan photos with batch.
        Where's MagicSpeed?
        Quote from: 'matt'
        He's playing a game called IRL. Great graphics, *censored* gameplay.

        lufkincy

          Topic Starter


          Rookie

          Re: Question about using batchfiles in Windows XP
          « Reply #8 on: September 06, 2009, 11:23:41 AM »
          I don't think you can scan photos with batch.
          Thanks for the response. I have no idea whether or not this is possible. It has been many years since I wrote batchfiles and I have forgotten most of what I had learned, but I recall having written files that paused, let me enter something, then continue. I had a free utility batchfile creator that would create some really complicated batchfiles.

          Actually, this is just one of the many things on my wishlist. When I found this forum I decided to see if anyone could help me on this wishlist item.

          Thanks again

          cy

          Helpmeh



            Guru

          • Roar.
          • Thanked: 123
            • Yes
            • Yes
          • Computer: Specs
          • Experience: Familiar
          • OS: Windows 8
          Re: Question about using batchfiles in Windows XP
          « Reply #9 on: September 06, 2009, 12:02:20 PM »
          Well, using SET /P, it will pause untill you enter something and press enter.
          Where's MagicSpeed?
          Quote from: 'matt'
          He's playing a game called IRL. Great graphics, *censored* gameplay.

          smeezekitty

          • Guest
          Re: Question about using batchfiles in Windows XP
          « Reply #10 on: September 06, 2009, 12:49:15 PM »
          gave it to a local Christian school.
          giving people stuff is always bad unless it is  a very good friend
          but anyway
          of cource you can run batch files in xp

          BC_Programmer


            Mastermind
          • Typing is no substitute for thinking.
          • Thanked: 1140
            • Yes
            • Yes
            • BC-Programming.com
          • Certifications: List
          • Computer: Specs
          • Experience: Beginner
          • OS: Windows 11
          Re: Question about using batchfiles in Windows XP
          « Reply #11 on: September 06, 2009, 10:59:28 PM »
          giving people stuff is always bad unless it is  a very good friend


          *censored*? God forbid we ever do anything to help the less fortunate or our communities. No, it's far more productive to hoard our goods and do nothing selfless for anybody- rather just coop ourselves up in an attic with our CGA video cards churning out TDWTF quality code in Turbo C that is essentially useless in the context of the modern day.

          Now then, back to the topic...


          I don't think you can scan photos with batch.

          why not?

          do a tad a research :P

          Windows XP and Vista include a program called WIAACMGR, which might be usable via the commandline. I cannot test it since I don't have a scanner, though.
          I was trying to dereference Null Pointers before it was cool.

          smeezekitty

          • Guest
          Re: Question about using batchfiles in Windows XP
          « Reply #12 on: September 06, 2009, 11:06:01 PM »

          *censored*? God forbid we ever do anything to help the less fortunate or our communities. No, it's far more productive to hoard our goods and do nothing selfless for anybody- rather just coop ourselves up in an attic with our CGA video cards churning out TDWTF quality code in Turbo C that is essentially useless in the context of the modern day.

          Now then, back to the topic...


          why not?

          do a tad a research :P

          Windows XP and Vista include a program called WIAACMGR, which might be usable via the commandline. I cannot test it since I don't have a scanner, though.
          your sure in a bad mood

          BC_Programmer


            Mastermind
          • Typing is no substitute for thinking.
          • Thanked: 1140
            • Yes
            • Yes
            • BC-Programming.com
          • Certifications: List
          • Computer: Specs
          • Experience: Beginner
          • OS: Windows 11
          Re: Question about using batchfiles in Windows XP
          « Reply #13 on: September 06, 2009, 11:11:17 PM »
          your sure in a bad mood

          and your selfish, which is ironic given your recent post asking for a word that is essentially a synonym for it.
          I was trying to dereference Null Pointers before it was cool.

          smeezekitty

          • Guest
          Re: Question about using batchfiles in Windows XP
          « Reply #14 on: September 07, 2009, 01:29:18 AM »
          and your selfish, which is ironic given your recent post asking for a word that is essentially a synonym for it.
          hey bc_prog can you decode this:
          30 31 31 31 30 31 31 31 30 31 31 30 31 30 30 30 30 31 31 30 30 31 30 31 30 31 31 30 31 31 31 30 30 30 31 30 30 30 30 30 30 31 31 31 30 31 31 31 30 31 31 30 31 30 30 31 30 31 31 30 31 31 30 30 30 31 31 30 31 31 30 30 30 30 31 30 30 30 30 30 30 31 31 31 31 30 30 31 30 31 31 30 31 31 31 31 30 31 31 31 30 31 30 31 30 30 31 30 30 30 30 30 30 31 31 30 31 31 30 30 30 31 31 30 30 31 30 31 30 31 31 30 30 30 30 31 30 31 31 31 30 30 31 30 30 31 31 30 31 31 31 30 30 30 31 30 30 30 30 30 30 31 31 30 31 31 31 30 30 31 31 30 30 31 30 31 30 31 31 31 30 31 31 30 30 31 31 30 30 31 30 31 30 31 31 31 30 30 31 30 30 30 31 30 30 30 30 30 30 31 31 30 30 31 31 31 30 31 31 30 31 30 30 31 30 31 31 31 30 31 31 30 30 31 31 30 30 31 30 31 30 30 31 30 30 30 30 30 30 31 31 31 31 30 30 31 30 31 31 30 31 31 31 31 30 31 31 31 30 31 30 31 30 31 31 31 30 30 31 30 30 30 31 30 30 30 30 30 30 31 31 31 30 30 31 31 30 31 31 31 30 31 30 30 30 31 31 31 30 31 30 31 30 31 31 30 30 31 31 30 30 31 31 30 30 31 31 30 30 30 31 30 30 30 30 30 30 31 31 30 30 30 30 31 30 31 31 31 30 31 31 31 30 31 31 30 30 30 30 31 30 31 31 31 31 30 30 31 30 30 30 30 31 31 30 31 30 30 30 30 31 30 31 30 30 31 31 30 30 31 30 31 30 31 31 31 30 30 31 31 30 31 31 31 30 30 30 30 30 31 31 30 30 31 30 31 30 31 31 30 30 30 31 31 30 31 31 30 31 30 30 31 30 31 31 30 30 30 30 31 30 31 31 30 31 31 30 30 30 31 31 30 31 31 30 30 30 31 31 31 31 30 30 31 30 30 31 30 30 30 30 30 30 31 31 31 30 31 30 30 30 31 31 30 31 31 31 31 30 30 31 30 30 30 30 30 30 31 31 31 30 31 30 30 30 31 31 30 31 30 30 30 30 31 31 30 30 31 30 31 30 30 31 30 30 30 30 30 30 31 31 30 30 30 31 31 30 31 31 30 31 30 30 30 30 31 31 31 30 31 30 31 30 31 31 31 30 30 31 30 30 31 31 30 30 30 31 31 30 31 31 30 31 30 30 30

          BatchFileBasics



            Hopeful

            Thanked: 18
            Re: Question about using batchfiles in Windows XP
            « Reply #15 on: September 07, 2009, 10:08:05 AM »
            Quote
            when will you learn never give your stuff away
            especially to the church

            text - binary - hex

            http://home2.paulschou.net/tools/xlate/
            When the power of love overcomes the love of power the world will know peace - Jimi Hendrix.

            Helpmeh



              Guru

            • Roar.
            • Thanked: 123
              • Yes
              • Yes
            • Computer: Specs
            • Experience: Familiar
            • OS: Windows 8
            Re: Question about using batchfiles in Windows XP
            « Reply #16 on: September 07, 2009, 10:18:35 AM »
            text - binary - hex

            http://home2.paulschou.net/tools/xlate/
            I always use that site for converting binary, hex, decimal etc.
            Where's MagicSpeed?
            Quote from: 'matt'
            He's playing a game called IRL. Great graphics, *censored* gameplay.

            BatchFileBasics



              Hopeful

              Thanked: 18
              Re: Question about using batchfiles in Windows XP
              « Reply #17 on: September 07, 2009, 10:23:09 AM »
              yea, it came in handy when my friend needed me to "decode" binary he got in a message

              anyways.

              i wonder where lufkincy is
              When the power of love overcomes the love of power the world will know peace - Jimi Hendrix.

              Geek-9pm


                Mastermind
              • Geek After Dark
              • Thanked: 1026
                • Gekk9pm bnlog
              • Certifications: List
              • Computer: Specs
              • Experience: Expert
              • OS: Windows 10
              Re: Question about using batchfiles in Windows XP
              « Reply #18 on: September 07, 2009, 08:08:45 PM »
              Quote
              hey bc_prog can you decode this:
              Hey kitty, can you give a one line command that will decode what you just sent to BC ?
              Well, maybe  three or four lines.