function ClearCacheFolder(){ var CacheDirPath =new String(Connector.CacheDirectory);
CacheDirPath = CacheDirPath.substr(0, CacheDirPath.length-1);
DeleteFolder(CacheDirPath); }
Если у кого нет Функций в scr_FileUtils, то вот они:
function DeleteFolder(FolderPath){ var FileSystemObject = GetFileSystemObject(); if(FileSystemObject.FolderExists(FolderPath)){
FileSystemObject.DeleteFolder(FolderPath); } }
function GetFileSystemObject(){ var FileSystemObject =new ActiveXObject('Scripting.FileSystemObject'); return FileSystemObject; }