While changing the property of a File Resource (for example dir or fname) the command exits in error.