| REM **********************************************************
REM バッチファイル 実行
REM **********************************************************
Function RunBat( strName )
Dim strPath,strCommand
strPath = Tempdir & "\" & strName & ".bat"
Call PutTextFile( strPath, GetInline(strName) )
strCommand = "cmd.exe /c " & Dd( strPath )
RunSync( strCommand )
End Function
REM **********************************************************
REM バッチファイル パラメータ(置き換え)実行
REM **********************************************************
Function RunBatParam( strName, bPause, strParamList )
Dim strPath,strCommand,aParam,str,I
aParam = Split(strParamList,",")
strPath = Tempdir & "\" & strName & ".bat"
str = GetInline(strName)
For I = 0 to Ubound( aParam ) step 2
str = Replace( str, aParam(I), aParam(I+1) )
Next
Call PutTextFile( strPath, str )
strCommand = "cmd.exe /c " & Dd( strPath )
RunSync( strCommand )
End Function
| |