@ECHO OFF REM ------------------------------------------------------------------------------- REM File : ifortfix.bat for Japanese locale(1041) REM REM Abstract: REM Please run this .bat file from a Microsoft Visual Studio 2005* REM command prompt or the build environment of Intel(R) Visual Fortran Compiler. REM This batch file copies the files under "1033" folders REM created by the Intel Visual Fortran Compiler IDE integration installation REM to a new folder "1041". REM REM "Usage: ifortfix" REM REM * Other names and brands may be claimed as the property of others. if "%VSINSTALLDIR%"== "" goto Usage :checkdirexist IF NOT EXIST "%VSINSTALLDIR%\." goto Usage :ifortideinstalled IF NOT EXIST "%VSINSTALLDIR%\Intel Fortran\." goto UsageNoIfort echo starting copying necessary files for 1041 locale > ifortlog.txt 2>&1 echo creating directories with 1041 name echo creating directories with 1041 name >> ifortlog.txt 2>&1 mkdir "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\COM Server\1041" >>ifortlog.txt 2>&1 mkdir "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\Console Application\1041" >>ifortlog.txt 2>&1 mkdir "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\Library\1041" >>ifortlog.txt 2>&1 mkdir "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\QuickWin Application\1041" >>ifortlog.txt 2>&1 mkdir "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\Windowing Application\1041" >>ifortlog.txt 2>&1 echo copying files echo copying files >> ifortlog.txt 2>&1 copy /Y "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\COM Server\1033\*.*" "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\COM Server\1041" >>ifortlog.txt 2>&1 copy /Y "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\Console Application\1033\*.*" "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\Console Application\1041" >>ifortlog.txt 2>&1 copy /Y "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\Library\1033\*.*" "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\Library\1041" >>ifortlog.txt 2>&1 copy /Y "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\QuickWin Application\1033\*.*" "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\QuickWin Application\1041" >>ifortlog.txt 2>&1 copy /Y "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\Windowing Application\1033\*.*" "%VSINSTALLDIR%\Common7\IDE\ProjectTemplates\IntelFortran\Windowing Application\1041" >>ifortlog.txt 2>&1 echo please wait a minute or two while devenv is reset! echo running "%VSINSTALLDIR%\Common7\IDE\devenv" /setup >> ifortlog.txt 2>&1 "%VSINSTALLDIR%\Common7\IDE\devenv" /setup goto Completed :Usage echo Bad environment where VSINSTALLDIR environment variable echo is not defined. echo Please open the command window from the VS2005 menu echo or Intel Fortran Compiler menu echo echo Usage: ifortfix echo A log file "ifortlog.txt" will be created at the current directory. goto end :UsageNoIfort echo ****************************************** echo Did NOT detect the Intel Fortran IDE integration. echo Please make sure VSINSTALLDIR environment variable points echo to the Visual Studio 2005 root directory. echo echo Usage: ifortfix echo ****************************************** goto end :Completed echo Completed! echo Completed! >> ifortlog.txt 2>&1 :end