Jump to content

Sign in to follow this  
skysurfer

cfg file shown in Notepad format

Recommended Posts

Hello.

When I accessed p3d.cfg file I chose option 'Open with' Notepad and accidentally clicked Always Open check mark. Now all my cfg like files are shown as notepad. These type of files look like Notepad even though extention still sown .cfg.  I cannot figure out how to revert it back to cfg format. 

Thanks for looking. 

50076339343_0b16b54c93_m.jpg


Edward

i9-9900K 4.7GHz | Gigabyte Z390 AORUS Master | EVGA FTW3 ULTRA GeForce RTX 2080 Ti 11GB | CORSAIR H115i PRO Liquid CPU Cooler | G.SKILL TridentZ 32GB (4 x 8GB) DDR4 4000 (PC4 32000) | CORSAIR RM850x PSU | W10 Pro | ASUS 24” Monitor | Prepar3D v5 | MSFS2020

 

 

 

Share this post


Link to post
Share on other sites

I have googled how to take ownership and it looked it is a whole great deal process. I would need to mess around with registry 🙂 

I will take a look at that software, may be it will be easier way. Thanks for the advice.   


Edward

i9-9900K 4.7GHz | Gigabyte Z390 AORUS Master | EVGA FTW3 ULTRA GeForce RTX 2080 Ti 11GB | CORSAIR H115i PRO Liquid CPU Cooler | G.SKILL TridentZ 32GB (4 x 8GB) DDR4 4000 (PC4 32000) | CORSAIR RM850x PSU | W10 Pro | ASUS 24” Monitor | Prepar3D v5 | MSFS2020

 

 

 

Share this post


Link to post
Share on other sites
Posted (edited)
5 hours ago, skysurfer said:

Hello.

When I accessed p3d.cfg file I chose option 'Open with' Notepad and accidentally clicked Always Open check mark. Now all my cfg like files are shown as notepad. These type of files look like Notepad even though extention still sown .cfg.  I cannot figure out how to revert it back to cfg format. 

Thanks for looking. 

50076339343_0b16b54c93_m.jpg

The graphic to the left of each config file simply shows that Notepad is the app currently associated with any file with .cfg as an extension.

Since all .cfg files in P3D are plain text files, (for which Notepad would indeed be the correct default app for opening and editing), why would you not want the permanent Notepad association? With the association in place, all you have to do is double click any .cfg file, and it will automatically load it into Notepad. Saves the trouble of having to specify Notepad each time. 

I can explain how to disassociate Notepad from .cfg, and it doesn’t require any special software or registry edits, but before I do, I want to be sure that’s what you really want.  Not sure I understand why you see this as being a problem...

Edited by JRBarrett

Jim Barrett

Licensed Airframe & Powerplant Mechanic, Avionics, Electrical & Air Data Systems Specialist. Qualified on: Falcon 900, CRJ-200, Dornier 328-100, Hawker 850XP and 1000, Lear 35, 45, 55 and 60, Gulfstream IV and 550, Embraer 135, Beech Premiere and 400A, MD-80.

Share this post


Link to post
Share on other sites

It is not a real problem to be honest. Maybe a personal preference.  


Edward

i9-9900K 4.7GHz | Gigabyte Z390 AORUS Master | EVGA FTW3 ULTRA GeForce RTX 2080 Ti 11GB | CORSAIR H115i PRO Liquid CPU Cooler | G.SKILL TridentZ 32GB (4 x 8GB) DDR4 4000 (PC4 32000) | CORSAIR RM850x PSU | W10 Pro | ASUS 24” Monitor | Prepar3D v5 | MSFS2020

 

 

 

Share this post


Link to post
Share on other sites

If you want to jump another bit ahead, look for Notepad++ and associate your CFG files with it. It's a lot better than the default Notepad.

Cheers, Ed

  • Like 1

Ed Patino

P3Dv4.5 hf3 - Win 10 Home x64 // Rig: Corsair Graphite 760T Full Tower - ASUS MBoard Maximus XI Hero Z390 - CPU Intel i7-8086k 6-cores - 32GB RAM - MSI Nvidia GeForce GTX1080Ti 11GB - 3 x SSD x 1TB Crucial/Samsung + 1 x SSD 2TB Crucial + 1 HDD Seagate 2TB + 1 HDD External Seagate 2TB - Monitor LG 29UC97C UWHD Curved - PSU Corsair RM1000x - VR Oculus Rift // P3Dv4.5 hf3 - Win 10 Home x64 - Gaming Laptop CUK ASUS Strix - CPU Intel i7-8750H - 32GB RAM - Nvidia RTX 2070 - 2TB SSD - 2TB HDD // Thrustmaster FCS & MS XBOX Controllers

Share this post


Link to post
Share on other sites
Posted (edited)
5 hours ago, skysurfer said:

It is not a real problem to be honest. Maybe a personal preference.  

For me, having the blue Notepad icon next to the config files is an advantage, because it makes them stand out when viewing the contents of a folder. Important to understand that the blue Notepad icon does not represent a "file format", it just shows that files with .cfg extensions are currently using Notepad for viewing/editing.

I also have Notepad assigned as the default app to open .log and .ini files, which are also almost always plain text files.

But, if you really want to break the association with Notepad, proceed as follows:

The important thing to understand is that Notepad is an executable program, and in Windows, only an executable program can open files. What you are going to do is associate another file as the default app for .cfg files which is not actually an executable program.

First, find a .cfg file in Windows Explorer, and copy it to your Desktop to make it easy to find later.

Right click on the .cfg file, and from the resulting menu choose "open with" then "choose another app".

You will get a dialog box that says "How do you want to open this app?" Notepad will already show at the top of this dialog as the current default app assigned to open .cfg files.

Put a check mark in the box that says "always use this app to open .cfg files", then click on the blue text "more apps"

This will display a list of various executable apps installed on your PC. Scroll down to the bottom of that list and click on the blue text that says "look for another app on this PC".

This will display a Windows Explorer file window, that should open by default in the "C:\Program Files" folder.

In the lower right-hand corner, next to the "File name:" box, you will see "Programs (*.exe, .pif, *com." 

Click the downward-pointing right arrow next to that and change the box to "All Files(*.*)"

Now, in the left side of the Explorer window, click on "Desktop", and find the .cfg file you saved there earlier. Click on it, which should copy it to the "File Name:" box.

Finally, click on the "Open" button This will bring up an immediate (and expected) blue error message that says "This app can't run on your PC". Click the Close button.

What you have done in this process is to tell Windows to open .cfg files with... .cfg files! Since a file with a .cfg extension is really just a text file, (and not an executable program), Windows will display the error box that says the app cannot run on the PC. After you close that error message, you will find that the association between Notepad and .cfg files no longer exists, and all .cfg files on your PC will now have just a blank white box next to the file name instead of the blue Notepad symbol. 

Going forward, you will have to right-click a .cfg file, and specifically choose Notepad to open it.

 

 

Edited by JRBarrett

Jim Barrett

Licensed Airframe & Powerplant Mechanic, Avionics, Electrical & Air Data Systems Specialist. Qualified on: Falcon 900, CRJ-200, Dornier 328-100, Hawker 850XP and 1000, Lear 35, 45, 55 and 60, Gulfstream IV and 550, Embraer 135, Beech Premiere and 400A, MD-80.

Share this post


Link to post
Share on other sites
Posted (edited)

Jim. That did the trick. Thanks so much. I have installed Notepad++ and will give it a try. Looks like a good prog to have it. 

Thanks you all very much as well. 🙂

 

Edited by skysurfer

Edward

i9-9900K 4.7GHz | Gigabyte Z390 AORUS Master | EVGA FTW3 ULTRA GeForce RTX 2080 Ti 11GB | CORSAIR H115i PRO Liquid CPU Cooler | G.SKILL TridentZ 32GB (4 x 8GB) DDR4 4000 (PC4 32000) | CORSAIR RM850x PSU | W10 Pro | ASUS 24” Monitor | Prepar3D v5 | MSFS2020

 

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    28%
    $7,075.00 of $25,000.00 Donate Now
×
×
  • Create New...