![]() |
Forum Index : Microcontroller and PC projects : CMM2 - shortcut for starting apps/games/demos...
Author | Message | ||||
jirsoft![]() Guru ![]() Joined: 18/09/2020 Location: Czech RepublicPosts: 533 |
Hi, maybe you have found this or you have another method, but maybe this can help somebody. My method for creating shortcuts for starting different applications. 1. Create somewhere directory (my is LINKs) 2. Into this directory put for every app needed short BASIC program, I have here: SE.BAS for SimplEd, NC.BAS for Napoleon Commander, LIB.BAS for library testing etc. 3. in every BASIC program write just command RUN with full path to application. So my SE.BAS looks so: RUN "/JirSoft/SimplEd/SimplEd.BAS" 4. OPTION SEARCH PATH "/LINKs" (path to your link directory Now I can just write *se to start SimplEd... If your apps are using INCLUDE files, maybe you need to put to the begin of BASIC program line: CHDIR MM.INFO$(PATH) This will after start of the program switch current directory to path where was program startet from. Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Hi Jiri, See http://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=12409 - Use EXECUTE instead of calling RUN directly that way you can pass through any command line arguments. - Don't worry about #INCLUDE that is always resolved relative to the location of the file doing the including. - Avoid calling CHDIR or at least always make sure you CHDIR back as soon as you can as it is really annoying if when a program exils it leaves you in a different directory from where you started. - Don't forget to refer to any assets/file resources that a program needs by their absolute path, MM.INFO$(PATH) is your friend. YMMV, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
jirsoft![]() Guru ![]() Joined: 18/09/2020 Location: Czech RepublicPosts: 533 |
Hi Tom, But anyway thanks Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |