Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:18 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMEdit file association

Author Message
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 09:23pm 12 Jan 2016
Copy link to clipboard 
Print this post

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: Australia
Posts: 195
Posted: 05:25am 16 Nov 2017
Copy link to clipboard 
Print this post

  TassyJim said  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


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: Australia
Posts: 6283
Posted: 07:28am 16 Nov 2017
Copy link to clipboard 
Print this post

Did you try:
File...
Preferences...
Advanced...
Set BAS file association

Jim

VK7JH
MMedit
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 08:03am 16 Nov 2017
Copy link to clipboard 
Print this post

Right click the file name (.bas file)
Open with
Choose MMEdit and click the box that says "Always open with MMEdit"Edited by lew247 2017-11-17
 
erbp
Senior Member

Joined: 03/05/2016
Location: Australia
Posts: 195
Posted: 08:14am 16 Nov 2017
Copy link to clipboard 
Print this post

@TassyJim

No I hadn't, but I have now and yes - it is working fine!

Thanks,
Phil.
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1642
Posted: 05:02am 25 Feb 2020
Copy link to clipboard 
Print this post

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: Australia
Posts: 6283
Posted: 09:06pm 25 Feb 2020
Copy link to clipboard 
Print this post

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: Australia
Posts: 1642
Posted: 09:42pm 25 Feb 2020
Copy link to clipboard 
Print this post

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: Australia
Posts: 6283
Posted: 11:33pm 25 Feb 2020
Copy link to clipboard 
Print this post

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: Australia
Posts: 1993
Posted: 04:52am 27 Feb 2020
Copy link to clipboard 
Print this post

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: Australia
Posts: 1642
Posted: 05:20am 16 Nov 2021
Copy link to clipboard 
Print this post

@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: Australia
Posts: 6283
Posted: 06:33am 16 Nov 2021
Copy link to clipboard 
Print this post

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: Australia
Posts: 1642
Posted: 10:05pm 16 Nov 2021
Copy link to clipboard 
Print this post

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.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025