On windows 7, using intel fortran 17.1, is there a way in Fortran to determine in stdout has been redirected to a file, or stdout is going to a console window, or (it seems) to the console window and a file? On win32, redirecting stdout results in stdout text going to the console window and to the stdout file. On migrating from Win32 to x64, stdout redirected only goes to the file and not to the console window. We'd like to have the text going to both the console window and (if stdout is redirected) to the file. It seems we'd need to know if stdout was redirected to be able to make things work this way. Any suggestions would be appreciated.