I have a computer with a hard drive mounted read-only. I am running a script from a flash drive. I would like the script to be able to unmount the flash drive, but this can't be performed as the script is still open for reading.
If I had another writable drive, I would copy the script to there and run it, but I don't see any place to put it. Is there some way to load a script into memory so that it can be run from there and the original script file can be closed?