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

Author Topic: default application for batch files  (Read 5260 times)

0 Members and 1 Guest are viewing this topic.

giomach

    Topic Starter


    Rookie

    Thanked: 1
    • Experience: Beginner
    • OS: Unknown
    default application for batch files
    « on: January 31, 2012, 05:59:16 PM »
    I had associated .bat files with an editor, but now I'd like to restore the default situation that double-clicking a .bat file will run that file in the command line, as described in http://www.computerhope.com/batch.htm#windows

    I've used the control panel to reset the associated program to cmd.exe, but double-clicking the batchfile name in Windows just runs the command line, it doesn't process the batch file in it but waits with a command line prompt.

    assoc .bat returns .bat=batfile and ftype batfile returns batfile="%1" %*

    I can't see what else to do.

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: default application for batch files
    « Reply #1 on: January 31, 2012, 07:48:02 PM »
    Welcome!
    Computer Hope is the number one location for free computer help.
    The forum will help everyone with all computer questions.
    What OS?

    Using XP my screen looks like this:


    giomach

      Topic Starter


      Rookie

      Thanked: 1
      • Experience: Beginner
      • OS: Unknown
      Re: default application for batch files
      « Reply #3 on: February 01, 2012, 05:22:43 PM »
      Thanks, Salmon Trout, that's the answer to getting the batch file to actually run!

      >Also look for the key;
      >..BAT
      >under
      >HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
      >and delete the key named
      >..BAT

      Many thanks (and to the other respondents too).