ディスクスペースの問題を避けるために、どのファイルを削除すればよいですか?
ディスクスペースを確保するために、一時ファイルを削除することができます。
説明
出力ジェネレーターまたはTEXTMLサーバーがディスクフル状態を報告しました。出力ジェネレーターからの一時ファイルやTEXTMLサーバーからのログは、過剰なディスクスペースを消費する可能性があります。
解決法
- 不要になったTEXTMLサーバーのログファイルを削除します。ログディレクトリはTextmlServerCfg.xmlファイルで定義されます。例えば、C:\ProgramData\IxiaSoft\TextmlServer43\Logです。
- tempフォルダから古い出力ジェネレータージョブを削除します。例えば、C:\outptugenerator\prod\tempです。
cleanup-temp.batというバッチファイルをセットアップして、出力ジェネレーターの一時フォルダを自動的に削除することができます。以下にバッチファイルのサンプルを示します:
@echo off
if [%1] == [] goto Usage
if [%2] == [] goto Usage
if [%1] == [-f] goto FileList
:SingleEntry
if [%1]==[] goto :eof
if [%2]==[] goto :eof
set nbday=%2
set target=%1
IF not EXIST %target%\nul goto ErrorNoPathFound
forfiles /p %target% -d %nbday% /c "cmd /c if @isdir==FALSE del /f /q @file"
forfiles /p %target% -d %nbday% /c "cmd /c if @isdir==TRUE rd /q/s @file"
goto :eof
:Usage
echo Usage
echo cleanup-temp.bat pathname date
echo.
echo pathname Indicates the path to clean.
echo.
echo date Selects files with a last modified date greater
echo than or equal to (+), or less than or equal to
echo (-), the specified date using the
echo "dd/MM/yyyy" format; or selects files with a
echo last modified date greater than or equal to (+)
echo the current date plus "dd" days, or less than or
echo equal to (-) the current date minus "dd" days. A
echo valid "dd" number of days can be any number in
echo the range of 0 - 32768.
echo "+" is taken as default sign if not specified.
echo.
echo or
echo cleanup-temp.bat -f filename
echo.
echo filename A file that contain a flat list of folder/file
echo to clean up. Each line conatin one path and a date
echo value. Line starting with # are ignoreac
echo.
goto :eof
:ErrorNoPathFound
Echo The specify directory "%target%" doesn't exist
goto :eof
:FileList
if not exist %2 then goto Usage
for /F "eol=# tokens=1,2" %%i in (%~2) do call :SingleEntry %%i %%j
goto :eof
ファイルを実行するには、コマンドプロンプトでcleanup-temp.bat
C:\windows\temp -5
と入力します。これにより、5日以上前のフォルダやファイルが削除されます。