Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:17 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 : Where Does MMBASIC for DOS Store Files????

Author Message
jwettroth

Regular Member

Joined: 02/08/2011
Location: United States
Posts: 79
Posted: 06:11am 18 Mar 2022
Copy link to clipboard 
Print this post

This might be a bone headed question but I'm stumped!

I am writing some MMITE code but the beginning of the code was sort of user console where I would let the user set options, etc and then time out and run the regular code if no console was connected in the embedded version.  I used MMBASIC for DOS 5.05.05 an d got my little console dialog working to my satisfaction in DOS.  I figured I would then put it into the main embedded code but I can't find it.  If I start mmbasicdos, I can load it, edit and run it- but I can't find it.  I have saved it and its not gone, I just can't find it.

Please be gentle if this is the dumbest problem ever but I'm lost.

Regards
John Wettroth
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 442
Posted: 06:21am 18 Mar 2022
Copy link to clipboard 
Print this post

From a DOS prompt do this:

cd \
dir yourprogname /s

DOS will search all directories (that's what the /s is for) to find the file.
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2640
Posted: 06:27am 18 Mar 2022
Copy link to clipboard 
Print this post

WEDIT will open Notepad with the loaded file in it. Use "Save As" to put a copy in a location of your choice.

Or try:-
SAVE "C:\path\file.BAS"

Can't Windows Search find it?
 
jwettroth

Regular Member

Joined: 02/08/2011
Location: United States
Posts: 79
Posted: 06:38am 18 Mar 2022
Copy link to clipboard 
Print this post

Thank you!

I'm of a certain age and relied on DOS for many years but forgot about /s switch.


It found it!

Its in "my user name\AppData\Local\Virtualstore\Program Files (x86)\MMBASIC" wow

Is this documented?
John Wettroth
 
jwettroth

Regular Member

Joined: 02/08/2011
Location: United States
Posts: 79
Posted: 06:42am 18 Mar 2022
Copy link to clipboard 
Print this post

Windows search was of no use.  I tried to do a save to C:\, root of C:, no joy.

I appreciate the help.
John Wettroth
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2640
Posted: 06:47am 18 Mar 2022
Copy link to clipboard 
Print this post

"Is this documented?"
Searched the manual but can't find it.
Tested WEDIT and that works.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:53am 18 Mar 2022
Copy link to clipboard 
Print this post

  jwettroth said  Thank you!

I'm of a certain age and relied on DOS for many years but forgot about /s switch.


It found it!

Its in "my user name\AppData\Local\Virtualstore\Program Files (x86)\MMBASIC" wow

Is this documented?


It looks like you installed MMBasic.exe into program files.
NOT a good idea

put the exe into a folder that is NOT in program files such as C:\apps\MMBasic

That way Windows will behave nice.

Jim
VK7JH
MMedit
 
jwettroth

Regular Member

Joined: 02/08/2011
Location: United States
Posts: 79
Posted: 06:55am 18 Mar 2022
Copy link to clipboard 
Print this post

WEDIT Didn't work for me- If I rerun MMBASIC and do a load- all works.

If I do a WEDIT, it says file not found.

It must have been the way I started the file.  I was trying to try out some commands and just started typing into the MMBASIC dos console.  After I got a handle on things, I just used the MMBASIC editor until I got to a certain point.  I then was going to merge the code into my embedded app inside of Notepad++ but ran into this weirdness.

Thanks very much Phil99 and toml_12953- this is an amazing group- its after 1 am, I get stumped, put a question on line and have a solution in 20 minutes- amazing!
John Wettroth
 
jwettroth

Regular Member

Joined: 02/08/2011
Location: United States
Posts: 79
Posted: 07:02am 18 Mar 2022
Copy link to clipboard 
Print this post

Wow- thank you Tassy Jim- just trying to keep my root directory Tidy

I get it and I had no idea of this odd behavior but it now makes perfect sense.

Thanks - I repeat "best user group ever!"
John Wettroth
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2640
Posted: 07:05am 18 Mar 2022
Copy link to clipboard 
Print this post

"If I do a WEDIT, it says file not found."
Were you trying that at the DOS prompt? My bad I should have said it is a MMBasic command ie you use it at the MMBasic command prompt.
 
jwettroth

Regular Member

Joined: 02/08/2011
Location: United States
Posts: 79
Posted: 07:10am 18 Mar 2022
Copy link to clipboard 
Print this post

phil99- thanks for the help- WEDIT is a cool feature.  I guess I have to move MMBASIC out of the program files folders- Windoze treats this differently and does funny things- thanks Tassy Jim.  Learned something.
John Wettroth
 
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