Acb CopyToFolder

From kwiki

Jump to: navigation, search

Acb_CopyToFolder (Ac Script function)

This function works only in scripts executed from inside Ac Browser Plus

full declaration

bool Acb_CopyToFolder (string or array of strings SrcObjects, string sDestFolder, [string overwriting_mode="ask"(default) / "yes_all" / "skip_all"] )

return value

bool

description

Copies a file/folder (or an array of files/folder - see array of strings) to given sDestFolder. Example:

//example with coping all currently selected files and folder to 'c:\SomeDestFolder'.
Acb_CopyToFolder ($acb_selected_paths,"c:\\SomeDestFolder");
//example with an array of source paths (full paths required)
var $arSrc=array("c:\\Windows\\notepad.exe","c:\\Windows\\Temp");
Acb_CopyToFolder($arSrc,"c:\\SomeDestFolder");
//example with 'yes_all' flag passed in - files existing in destination folder 
//will be overwritten without prompting the user:
Acb_CopyToFolder($acb_selected_paths,"c:\\SomeDestFolder","yes_all");


keywords: acb copy to folder files directory


Personal tools
konradp.com