![]() |
Forum Index : Microcontroller and PC projects : MMEdit file association
Author | Message | ||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
The latest version of MMEdit stopped you from dragging bas files onto the desktop shortcut and having MMEdit open with that file. There is a way to fix that: The target in the desktop shortcut should read: "C:\Program Files (x86)\CCom\MMedit\MMedit.exe" Replace it with this: "C:\Program Files (x86)\CCom\MMedit\MMedit.exe" "C:\Program Files (x86)\CCom\MMedit\MMedit.tkn" The addition is a repeat of the original with ".exe" changed to ".tkn" I have also found a way to associate bas files with MMEdit. That will be in a couple of weeks. Much better than the horrible batch file method I was using. I haven't tested it with all versions of Windows but I am hopeful. Jim VK7JH MMedit |
||||
erbp Senior Member ![]() Joined: 03/05/2016 Location: AustraliaPosts: 195 |
Jim, Was there any further progress on getting the file association to work instead of reporting that the MMedit.tkn file is missing when you double-click on a .bas file that is not in the same directory as MMedit.exe? I am using MMedit v3.7.0 which I believe is the latest. Regards, Phil. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Did you try: File... Preferences... Advanced... Set BAS file association Jim VK7JH MMedit |
||||
lew247![]() Guru ![]() Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
Right click the file name (.bas file) Open with Choose MMEdit and click the box that says "Always open with MMEdit" |
||||
erbp Senior Member ![]() Joined: 03/05/2016 Location: AustraliaPosts: 195 |
@TassyJim No I hadn't, but I have now and yes - it is working fine! Thanks, Phil. |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
Sorry but this still doesn't work for me. I have associated MMEdit with .BAS files and Explorer shows the MMEdit icon for BAS files but I still get the dreaded "file not found: MMEdit.TKN" message. I'm using MMEdit V3.8.1. what am I missing? Thanks Bill Keep safe. Live long and prosper. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
This is a moving target. The procedure in the first post still works for drag and drop. Well it does for me anyway. For double-clicking on a BAS file in Windows Explorer try replacing the mmedit.bat file in the program folder with this one. MMEdit_bat.zip Then associate BAS files with mmedit.bat instead of mmedit.exe You won't have the mmedit icon but it should work. Jim VK7JH MMedit |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
Thanks Jim, That worked - eventually. Because I have my documents on drive D: I had to change the .BAT file to: @echo off C: CD C:\Program Files (x86)\CCom\MMedit start mmedit.exe "C:\Program Files (x86)\CCom\MMedit\MMedit.tkn "%1 And because of its location I had to run notepad as administrator even though I am one. (sigh) Bill Keep safe. Live long and prosper. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
I should have put the change to drive C in there. I will do that to the version included in MMEdit. It would be nice if things like this just worked. Microsoft keep trying to be 'helpful' and it buggers things up more often than not. Jim VK7JH MMedit |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
I tried the "Preferences/Advancesd/Set BAS file association" and it worked fine on one Laptop but not the other both running Win10. I get a pop up with Registry Error Unable to get current bas file association Regqueryval Ex0 Returned 2....{ Ex0 could be Ex() } Then when I close MMedit I get another pop up # advapi32 These handles closed by liberty basic Please add the appropriate close commands. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
@Jim, Using a new laptop and have MMEdit installed with the batch file as above for association and that works. Trouble is now MMEdit saves the file in: C:\Program Files (x86)\CCom\MMedit and not the original file's location. ![]() I can force it to save at the right location by doing a 'SAVE AS' and navigating to the correct location and over-writing to old file but... Can you please tell me what I've done to cause that? Thanks Bill Edit: It appears that MMEdit is not actually saving the file unless I do a SAVE AS. Clicking on the SAVE icon or doing FILE/SAVE doesn't seem to save the file anywhere. Edited 2021-11-16 15:56 by Turbo46 Keep safe. Live long and prosper. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
I expect that the default working folder is pointing to the program files folder and Windows doesn't like you saving to those folders. It should work as expected if you don't use file association to open the file. Alternatively, you could play with MMEdit V5 It is still very crude and doesn't have connect to IP yet but the editor should be better to use. ITt also doesn't have the file manager (yet) The attached is a portable version and will not interfere with MMEdit V4 make a shortcut and drag and drop your bas file onto it, or if MMEdit is already open, drag and drop onto the edit window to open the file in a new tab. MMedit5_portable.zip Jim VK7JH MMedit |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
Thanks Jim, I wanted to find a solution for this and use it as is for now. I found that no matter how I loaded a .BAS file MMEdit still wanted to save it to the directory in which it is installed! ![]() I downloaded a fresh copy, uninstalled the old one and installed the new version (after winning an argument with Windows Defender). Now it all works as before. Happy now. ![]() Bill Keep safe. Live long and prosper. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |