DeleteFile

更新 : 2007 年 11 月

指定されたファイルを削除します。

function DeleteFile( 
      oFSO, 
      strFile  
) 

パラメータ

  • oFSO
    ファイル システム オブジェクト。

  • strFile
    削除するファイルの名前。

解説

この関数を呼び出して、指定したファイルを削除します。

使用例

// Declare a temporary file.
var strFile = strTempFolder + "\\" + strTarget;
var strClassName = strTarget.split(".");
wizard.AddSymbol("SAFE_CLASS_NAME", strClassName[0]);
wizard.AddSymbol("SAFE_ITEM_NAME", strClassName[0]);

// Declare the template name.
var strTemplate = strTemplatePath + "\\" + strTpl;

// Render and insert the template.
wizard.RenderTemplate(strTemplate, strFile, bCopyOnly);

// Create a new project file and add the file from the template.
var projfile = projItems.AddFromTemplate(strFile, strTarget);

// Delete the temporary file from the file structure object.
DeleteFile(fso, strFile);

参照

処理手順

カスタム ウィザードの作成

概念

共通の JScript 関数による C++ ウィザードのカスタマイズ

ウィザードのデザイン

その他の技術情報

C++ ウィザードの JScript 関数