<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; JS: Архивирование с паролем]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9640&amp;type=atom" />
	<updated>2014-05-22T20:46:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9640</id>
		<entry>
			<title type="html"><![CDATA[Re: JS: Архивирование с паролем]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=83246#p83246" />
			<content type="html"><![CDATA[<p>Дык нет в CopyHere данной функции (уже как то <a href="http://forum.script-coding.com/viewtopic.php?pid=78299#p78299">спрашивали</a> - никто почему-то не ответил, хотя это ещё где-то обсуждалось).<br />Нужны доп. компоненты (<a href="http://www.xstandard.com/en/documentation/xzip/">1</a>, <a href="https://www.chilkatsoft.com/refdoc/xChilkatZip2Ref.html">2</a>) либо утилиты 7-zip/pkzip/zip(1L).</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2014-05-22T20:46:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=83246#p83246</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[JS: Архивирование с паролем]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=83239#p83239" />
			<content type="html"><![CDATA[<p>Помогите, плиз, добавить в архив пароль в этом тексте скрипта!<br />это только часть скрипта конечно<br /></p><div class="codebox"><pre><code>function backupDB()
 {
 try
 {
 var NewTextFile = oFileSystemObject.CreateTextFile(backupFileName,false);[/b]

 NewTextFile.Write(String.fromCharCode(80,75,5,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0));
 NewTextFile.Close();
 var ZIPFile = oFileSystemObject.GetAbsolutePathName(backupFileName);
 var dFolder = oShellApplication.NameSpace(ZIPFile);
 var file = oFileSystemObject.GetAbsolutePathName(BaseFileName);
 var FolderNameSpace = oFileSystemObject.GetParentFolderName(file);
 var Folder = oShellApplication.Namespace(FolderNameSpace);
 var FolderItemNameSpace = oFileSystemObject.GetFileName(file);
 var FolderItem = Folder.ParseName(FolderItemNameSpace);
 if (!createBackup)
 return 0;
 dFolder.CopyHere(file);
 ret = 0;
 log(format(«Попытка создания резервной копии», ret), ret != 0);
 }
 catch(e)
 {
 alert(e.message);
 CollectGarbage(); // предотвращает исключение out of memory
 log(format(«Исключение при создании резервной копии базы», e.name, e.message), true);
 ret = -1;
 }
 if (ret == 0)
 backupCreated = true;
 return ret;
 }</code></pre></div><p> Спасибо заранее!</p>]]></content>
			<author>
				<name><![CDATA[kovan2002]]></name>
			</author>
			<updated>2014-05-22T17:31:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=83239#p83239</id>
		</entry>
</feed>
