I'm running Windows 7 with MDF V.4g.
Whenever I try to execute DF quickly from the MDF GUI (such as click DF, close DF, click DF again), the following error message usually pops up:
---------------------------
Masterwork Dwarf Fortress
---------------------------
There has been a problem saving file F:\MasterworkDF V4g\Dwarf Fortress\runProgram.bat.
Error: System.UnauthorizedAccessException: Access to the path 'F:\MasterworkDF V4g\Dwarf Fortress\runProgram.bat' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path)
at MasterworkDwarfFortress.fileWorking.saveFile(String fullFilePath, String newText)
---------------------------
OK
---------------------------
I'm not sure about the specifics, but I think runProgram.bat isn't being deleted immediately. I've moved MDF to a non-Library folder and this problem still exhibits itself. It makes it really difficult to change settings quickly.
The problem resolves itself after some time. Usually about a minute, but can take significantly longer. Trying to use Unlocker on the file doesn't yield results, and running MDF as administrator doesn't fix the problem.