<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; WSH: добавить дату к имени файла]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=6727</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6727&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «WSH: добавить дату к имени файла».]]></description>
		<lastBuildDate>Thu, 26 Jan 2012 04:43:03 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: WSH: добавить дату к имени файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=56002#p56002</link>
			<description><![CDATA[<p>Или так даже<br /></p><div class="codebox"><pre><code>set x=new RegExp
x.Pattern=&quot;[^0-9]&quot;
x.Global=true
msgbox(x.replace(date,&quot;&quot;))</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (smaharbA)]]></author>
			<pubDate>Thu, 26 Jan 2012 04:43:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=56002#p56002</guid>
		</item>
		<item>
			<title><![CDATA[Re: WSH: добавить дату к имени файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=56000#p56000</link>
			<description><![CDATA[<p>лучше будет так как то</p><p>set x=new RegExp<br />x.Pattern=&quot;[^0-9]&quot;<br />msgbox(replace(date,x.Execute(date)(0),&quot;&quot;))</p>]]></description>
			<author><![CDATA[null@example.com (smaharbA)]]></author>
			<pubDate>Thu, 26 Jan 2012 04:09:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=56000#p56000</guid>
		</item>
		<item>
			<title><![CDATA[Re: WSH: добавить дату к имени файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=55997#p55997</link>
			<description><![CDATA[<p>Ну, что окончательный вариант:<br /></p><div class="codebox"><pre><code>Dim strRun
strRun=&quot;&quot;&quot;C:\Program Files\1cv81\bin\1CV8.EXE&quot;&quot; CONFIG /S &quot;&quot;sql_hiper\dkp&quot;&quot;/N &quot;&quot;Администратор&quot;&quot;/P &quot;&quot;mikromax&quot;&quot;/DumpIB &quot;&quot;F:\bac\dkp\DKP_Backup&quot; &amp; replace(date,&quot;.&quot;,&quot;&quot;) &amp; &quot;.dt&quot;&quot;&quot;                

Set WshShell=CreateObject(&quot;WScript.Shell&quot;)

ReturnCode=WshShell.Run(strRun)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (chichva)]]></author>
			<pubDate>Wed, 25 Jan 2012 14:58:31 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=55997#p55997</guid>
		</item>
		<item>
			<title><![CDATA[Re: WSH: добавить дату к имени файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=55996#p55996</link>
			<description><![CDATA[<div class="quotebox"><cite>smaharbA пишет:</cite><blockquote><p>а чем к примеру replace(date,&quot;.&quot;,&quot;&quot;) не канает ?</p></blockquote></div><p>Так я, только недавно за VBScript взялся, так сказать - разведка-боем. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (chichva)]]></author>
			<pubDate>Wed, 25 Jan 2012 12:37:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=55996#p55996</guid>
		</item>
		<item>
			<title><![CDATA[Re: WSH: добавить дату к имени файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=55995#p55995</link>
			<description><![CDATA[<p>а чем к примеру replace(date,&quot;.&quot;,&quot;&quot;) не канает ?</p>]]></description>
			<author><![CDATA[null@example.com (smaharbA)]]></author>
			<pubDate>Wed, 25 Jan 2012 12:23:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=55995#p55995</guid>
		</item>
		<item>
			<title><![CDATA[Re: WSH: добавить дату к имени файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=55994#p55994</link>
			<description><![CDATA[<p>Да,классный вариант, сработало! Спасибо огромное! Именно то что нужно и все грамотно работает.<br />Хотел chichva сказать спасибо не нашел где.<br />Надо бы форуму добавить систему спасибок пользователю.</p>]]></description>
			<author><![CDATA[null@example.com (Даурен)]]></author>
			<pubDate>Wed, 25 Jan 2012 11:24:29 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=55994#p55994</guid>
		</item>
		<item>
			<title><![CDATA[Re: WSH: добавить дату к имени файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=55993#p55993</link>
			<description><![CDATA[<p>Может вот так:<br /></p><div class="codebox"><pre><code>Dim strRun

if  day(date) &lt; 10 then strRun=&quot;0&quot;
strF=strF &amp; day(date) 

if  month(date) &lt; 10 then strRun=strF &amp; &quot;0&quot;
strRun=strRun &amp; month(date) 

strRun=strRun &amp; Year(date)
strRun=&quot;&quot;&quot;C:\Program Files\1cv81\bin\1CV8.EXE&quot;&quot; CONFIG /S &quot;&quot;sql_hiper\dkp&quot;&quot;/N &quot;&quot;Администратор&quot;&quot;/P &quot;&quot;mikromax&quot;&quot;/DumpIB &quot;&quot;F:\bac\dkp\DKP_Backup&quot; &amp; strRun &amp; &quot;.dt&quot;&quot;&quot;                

Set WshShell=CreateObject(&quot;WScript.Shell&quot;)

ReturnCode=WshShell.Run(strRun)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (chichva)]]></author>
			<pubDate>Wed, 25 Jan 2012 11:06:20 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=55993#p55993</guid>
		</item>
		<item>
			<title><![CDATA[Re: WSH: добавить дату к имени файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=55976#p55976</link>
			<description><![CDATA[<p><span style="color: Green"><strong>Даурен</strong>, я написал <em>правильный</em> заголовок темы, перенёс в <em>правильный</em> раздел форума, оформил текст согласно <a href="http://forum.script-coding.com/rules.html">Правилам форума</a>, исправил более-менее орфографию, грамматику и стилистику.</span></p><p><span style="color: Green">В дальнейшем жду этого от Вас.</span></p>]]></description>
			<author><![CDATA[null@example.com (alexii)]]></author>
			<pubDate>Tue, 24 Jan 2012 12:57:20 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=55976#p55976</guid>
		</item>
		<item>
			<title><![CDATA[WSH: добавить дату к имени файла]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=55973#p55973</link>
			<description><![CDATA[<p>Всем привет! Есть скрипт, который выгружает базу 1с и кладет ее в каталог. Но каждый раз, когда он кладет ее в каталог предыдущая копия базы затирается. На ум пришло, к имени базы прикреплять дату, но как это сделать не сообразил. Вот скрипт:<br /></p><div class="codebox"><pre><code>Set WshShell=CreateObject(&quot;WScript.Shell&quot;)

ReturnCode=WshShell.Run(&quot;&quot;&quot;C:\Program Files\1cv81\bin\1CV8.EXE&quot;&quot; CONFIG /S &quot;&quot;sql_hiper\dkp&quot;&quot;/N &quot;&quot;Администратор&quot;&quot;/P &quot;&quot;mikromax&quot;&quot;/DumpIB &quot;&quot;F:\bac\dkp\DKP_Backup.dt&quot;&quot;&quot;)</code></pre></div><p>В конструкции RUN cmd инструкция запуска базы и ее выгрузка в каталог. Сейчас при выгрузке выгружается файл вида F:\bac\dkp\DKP_Backup.dt и каждый раз идет перезатирание (скрипт запускается через «Назначенные задания»), а нужно чтобы было так:<br /></p><div class="codebox"><pre><code>F:\bac\dkp\DKP_Backup24012012.dt 
F:\bac\dkp\DKP_Backup25012012.dt</code></pre></div><p>и т.д.</p><p>Спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (Даурен)]]></author>
			<pubDate>Tue, 24 Jan 2012 11:43:53 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=55973#p55973</guid>
		</item>
	</channel>
</rss>
