class LboxUnlha


  MeltAll



  
// *********************************************************
// ディレクトリを作成して全て解凍
// 戻り値 : 0 正常終了, それ以外はエラー
// *********************************************************
int LboxUnlha::MeltAll(
	int nType
)
{
	LboxString LString;

	this->Output.Resize( 4096 );
	// コマンドパラメータ
	if ( nType == 0 ) {
		this->Command.operator = ( "X -p2 " );
	}
	else {
		this->Command.operator = ( "E -p2 " );
	}

	// 書庫パラメータ
	LString.operator = (&(this->TargetPath));
	LString.Enclose('"');
	this->Command.operator += ( &(LString) );
	this->Command.operator += ( " " );

	if ( this->TargetPath.operator == ("") ) {
		this->ErrMessage.operator = ("書庫が指定されていません");
		return -1;
	}

	// ディレクトリ作成
	LString.operator = (&(this->TargetPath));
	LString.RemoveExtension();
	CreateDirectory( LString.szLboxString, NULL );

	LString.AddBackslash();
	LString.Enclose('"');
	this->Command.operator += ( &(LString) );
	this->Command.operator += ( " *" );

	return this->Unlha(
		&(this->Command)
	);

}
  










  infoboard   管理者用   
このエントリーをはてなブックマークに追加





フリーフォントWEBサービス
SQLの窓WEBサービス

SQLの窓フリーソフト

素材

一般WEBツールリンク

SQLの窓

フリーソフト

JSライブラリ