Page 1 of 1

Using OSF Mount From Script/Commandline

Posted: Fri Oct 21, 2022 11:39 pm
by Manannan

Hi All,

I thought I would post this message because previously I was feeling frustrated having to manually mount, copy and dismount everytime I compiled a new version of my program to test :(.



I watched this video . . .






. . . and it inspired me to write this script:

make

OSFMount -a -t file -f "C:\Commander\sdcard.img" -o rw -m E:

copy agi.cx16 "E:"

copy agi.cx16 "C:\Commander"

timeout 3

OSFMount -D -m E:

cd C:\Commander\ 

x16emu.exe -sdcard "sdcard.img" -prg "agi.cx16" -run

cd C:\meka\CommanderX16Version\

Make sure:

1. That the  OSFMount program folder, which is for me is in C:\Program Files\OSFMount is in your path

2. All command prompts are restarted after setting the path, so that they are using the new env variable

3. This only works if you run as an admin command prompt

I hope this will save people lots of time during debugging.



Thanks