Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bob Latham Newsgroups: comp.sys.acorn.programmer Subject: Re: Name of a program Date: Sat, 18 Apr 2026 13:50:38 +0100 Organization: None Lines: 27 Message-ID: <5ccb76adcabob@sick-of-spam.invalid> References: <5cca837cdbbob@sick-of-spam.invalid> <5cca87776fNews04@avisoft.f9.co.uk> <5cca8d05ebbob@sick-of-spam.invalid> <01ece1ca5c.harriet@bazleyfamily.co.uk> <5ccaee3398bob@sick-of-spam.invalid> <5ccb038169News04@avisoft.f9.co.uk> <5ccb161bb5bob@sick-of-spam.invalid> <5ccb684e90News04@avisoft.f9.co.uk> X-Trace: individual.net SHOoVAwSTH7lpO+Qx3miBgg+cPgh2GG6bmo3cvo95V+mnicKEX X-Orig-Path: sick-of-spam.invalid!bob Cancel-Lock: sha1:7HU0e42U7EgmO5uP8kp5s+6MK1Q= sha256:aHzMpeU2zkGkEY0oFsapUAUZOC2kEWfYuvb5d9A7TY4= X-No-Archive: Yes User-Agent: NewsHound/v1.54 Xref: csiph.com comp.sys.acorn.programmer:6642 In article <5ccb684e90News04@avisoft.f9.co.uk>, Martin wrote: > In article , > Theo wrote: > > I can think of a couple of routes to doing what you want: > > 1. Have your desktop program run the command of > > '*Basic -load $.MyProg' > > Then it starts Basic with the file loaded but not run. Actually, it already does that. > > 2. Have your desktop program set a system variable Yes, I added my code for that this morning. It now sets both Basic$Dir and now Basic$File. > 11 DEF FNid :REM insert program name at P% > 12 SYS "XOS_ReadVarVal","Basic$Prog",P%,255,0,3 TO ,,L% > 13 P% += L% :REM move ptr after name > 14 = 0 That's helpful thanks. Bob.