title: Ensure file create permissions of program launched from batch file?
body: <p>I have a simple batch file that labunches an old DOS binary.  Forever, the .exe has been launched with <code>start \b</code> from the .bat file.</p>
  
  <p>Recently, I have found that the DOS program crashes when trying to create some files, for some of the directories from which the batch file is launched.  The program <em>modifies</em> files everywhere just fine.  It's quite possible the DOS program is doing something stupid-- it doesn't emit useful information, it just crashes with a c0000005 access violation-- but I have to live with it.</p>
  
  <p>With a little debug, it's clear that changing <code>start \b</code> to <code>runas /savecred /user:ssliva</code> blesses the DOS program with the file creation permissions it needs to not crash, even though I'm already logged in.  User ssliva (me) is an admin on the box.</p>
  
  <p>Is there a way to get this DOS program working for all directories and all users again?  I don't want to hardcode user names in the batch file, so ideally I'd be able to discover what permissions are different where the program is crashing.</p>
  
  <p>I would think the issue is with the directory's permissions, but <code>icacls</code> indicates that the directory that needs <code>runas [admin]</code> has identical permissions to the directory where <code>start</code>works.  Users are (RX). I'm at a loss as to why file creation is causing an app crash in some directories but not others unless it's something other than folder permissions.</p>