Pathname for saving programs
Vladimir Shevchenko (2094) 88 posts |
Hi! |
||
Chris Hall (132) 3559 posts |
By default BASIC saves a file to @.filename where ‘@’ is the CSD Use !MultiTask then the csd is automatically set to the last opened directory. |
||
Vladimir Shevchenko (2094) 88 posts |
I understood your advice. |
||
Steve Drain (222) 1620 posts |
Open the directory viewer you want to save into by default, then Menu>Set directory or ^W. This sets the current directory. If you are running an application you might put |
||
Vladimir Shevchenko (2094) 88 posts |
|
||
Stuart Swales (8827) 1357 posts |
*Dir <wherever> But you shouldn’t [Edit: in distributable programs] – what the current directory is set to is up to the user. |
||
Vladimir Shevchenko (2094) 88 posts |
I’m user.. |
||
Martin Avison (27) 1494 posts |
I suspect Stuart meant that you should not use *Dir within a BASIC program (ie within code that is saved and run later), as that can/will lead to confusion when the program is run (even if it is you, you may have forgotten that it sets the directory!). It is perfectly OK to use *Dir from an interactive BASIC prompt or a command line, as you (the user) wants that to be executed at that time. |
||
John WILLIAMS (8368) 495 posts |
or, indeed, with a little Obeyfile in Boot:Tasks. |
||
Rick Murray (539) 13850 posts |
Especially don’t use Dir in a program if you’re ever intending to give it to others. ;-) |
||
Vladimir Shevchenko (2094) 88 posts |
And I was not going to insert *Dir into programs. I wanted to use the short command SAVE without pathname when saving programs. |