i am re using one of my old gwbasic files but it save/writes to the wrong directory/folder
OPEN "B:TEMP" FOR INPUT AS #1
it is writing my file to the windows directory system32
The line above is a file your BASIC program is reading from, not saving to.
Right click and open the properties of your shortcut.
Look for a box with the name "Start in:"
Type the path you want your file saved to in that box. Save and test that. Don't make any typing errors.
That may or may not work - it depends on the script and aspects of your computer.