How do I unassociate a file type?


  1. Posts : 2
    Windows 7 Home Premium 64bit
       #1

    How do I unassociate a file type?


    Hello, I am having trouble with running batch files. When I try to run them they open a cmd window, but the commands are no executed. I am not the administrator on my computer so I can't edit the the registry, and the IT department is refusing to edit the registries themselves. So does anyone have a different way to unassociate the bat extension
      My Computer


  2. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #2

    Hi Neutrino, welcome to the Seven Forums.

    I have some difficulties to understand your question? The batch file extension .bat is automatically associated with command prompt (cmd.exe) because all commands in a batch file are run from command prompt. That's the function of a batch file, run Windows (DOS) commands from command line.

    "Unassociating" .bat extension means your batch (of commands) can not be run.

    A totally different thing is that your IT department of course has reasons why you as a user are not allowed to perform administrative tasks on your company owned work PC, and why they refuse to do the changes individual users want to. Here at the Seven Forums we do not like to assist in "cracking" the protection measures an enterprise IT department has put on the computers owned by that enterprise.

    Kari
      My Computer


  3. Posts : 5,092
    Windows 7 32 bit
       #3

    Welcome to Windows Seven Forums.

    To avoid a lot of Q & A about your hardware and OS configuration, please click on this link to
    Edit System Specs

    Filling this out, at least partially, will save a lot of time. Another advantage is when posting a new problem, the person answering can just click the My System Specs link in the bottom of your post. No need to search for the information.

    If you have multiple systems just indicate that in the System Specs so that we know why many of the fields are blank.

    ==================================================

    Why not post a .bat file you are trying to run? Pick the simplest one. Not some 250 line batch file that calls 12 other batch files, if you know what I mean.

    Or, put another way, if you type a command that's used in a batch, into the command prompt manually, does it work then? "Does not execute" is kind of vague. Is there an error message?
      My Computer


  4. Posts : 4,751
    Windows 7 Home Premium 32-Bit - Build 7600 SP1
       #4

    Neutrino123 said:
    Hello, I am having trouble with running batch files. When I try to run them they open a cmd window, but the commands are no executed. I am not the administrator on my computer so I can't edit the the registry, and the IT department is refusing to edit the registries themselves. So does anyone have a different way to unassociate the bat extension
    Try this Unassociate File Extention Type - Vista Forums
      My Computer


  5. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #5

    Could you please explain how does this help OP to run batch files? Only thing that happens after unassociating when a batch file is run is this:

    How do I unassociate a file type?-capture.png

    If OP wants / needs to run batch files they should remain associated with cmd.exe.

    Kari
      My Computer


  6. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #6

    As Kari posted above, we cannot help the OP with this since it in violation of the company's policy.

    Please see: Forum Rules
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:33.
Find Us