<?php
require_once("iecho.php");
require_once("batchFile.class.php");
$fl = new batchFile();
$fl->extname ="*"; //the file type need to be operated ,format is [;php;html;]
$fl->deepLimit = 0;
$fl->path='D:\av\bbchannel\b'; //operate dir
$fl->filterPath='_vti_cnf'; //ignored dir
$fl->start();
//pr($fl);
$cmd = array();
foreach ($fl->file as $file)
{
$rfile = $fl->path . $file;
$rfile = str_replace('/' , '\\' , $rfile);
$r[substr($file,1,6)][] = $rfile;
}
foreach ($r as $rf) {
$cmd[] = "copy /b ".implode( "+" , $rf );
}
pr($cmd);
?>
require_once("iecho.php");
require_once("batchFile.class.php");
$fl = new batchFile();
$fl->extname ="*"; //the file type need to be operated ,format is [;php;html;]
$fl->deepLimit = 0;
$fl->path='D:\av\bbchannel\b'; //operate dir
$fl->filterPath='_vti_cnf'; //ignored dir
$fl->start();
//pr($fl);
$cmd = array();
foreach ($fl->file as $file)
{
$rfile = $fl->path . $file;
$rfile = str_replace('/' , '\\' , $rfile);
$r[substr($file,1,6)][] = $rfile;
}
foreach ($r as $rf) {
$cmd[] = "copy /b ".implode( "+" , $rf );
}
pr($cmd);
?>