<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Отправка файла на фтп]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11651&amp;type=atom" />
	<updated>2016-06-01T15:45:43Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11651</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104547#p104547" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong><br />Не файлы у меня не более 100м<br />Скрипт привёл в рабочее состояние,но вот есть 1 проблема . Ругается антивирусник у других пользователей в скомпилированном виде.Не знаю почему и как это исправить.Из такого особого это только чтение 1 компонента с реестра,и отправка файлов.</p>]]></content>
			<author>
				<name><![CDATA[leva.aks]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33621</uri>
			</author>
			<updated>2016-06-01T15:45:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104547#p104547</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104498#p104498" />
			<content type="html"><![CDATA[<p>Я бы при заливке на фтп создавал бы лог и проверял бы его на ошибки:<br /></p><div class="codebox"><pre><code>FTPCommandFile = %A_ScriptDir%\FTPCommands.txt
OutputFile = %A_ScriptDir%\output.txt
File = file.txt

FileDelete %FTPCommandFile%
FileDelete %OutputFile%
FileAppend,
(
open сайт.ru
пользователь
пароль
put D:/%File% %File%
quit
), %FTPCommandFile%

RunWait %comspec% /c ftp.exe -s:&quot;%FTPCommandFile%&quot; &gt;&quot;%OutputFile%&quot;,, Hide
Fileread, OutputVar, %OutputFile%
If InStr(OutputVar, &quot;Not connected&quot;) or InStr(OutputVar, &quot;not found&quot;) or InStr(OutputVar, &quot;failed&quot;) 
   msgbox Ошибка, файл не залился.
</code></pre></div><p>А при больших бы файлах (более пару гигабайт) еще бы проверял бы совпадение размеров с локального диска и с тем, что залилось на фтп.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-05-31T16:56:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104498#p104498</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104490#p104490" />
			<content type="html"><![CDATA[<p>Угу спасибо,работает.Я так проыбывал первый раз&nbsp; но что то не работала.Сейчас норм.</p>]]></content>
			<author>
				<name><![CDATA[leva.aks]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33621</uri>
			</author>
			<updated>2016-05-31T13:40:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104490#p104490</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104488#p104488" />
			<content type="html"><![CDATA[<p>Без % укажите.<br /></p><div class="codebox"><pre><code>    If % linefile != nicknameuser</code></pre></div><p>И <a href="http://forum.script-coding.com/viewtopic.php?id=6148">прочтите</a> целиком, а то забанят ещё.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-05-31T12:20:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104488#p104488</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104487#p104487" />
			<content type="html"><![CDATA[<p>в начале скрипта указанно.</p><div class="codebox"><pre><code>
RegRead, nicknameuser, HKCU, SOFTWARE\SAMP, PlayerName</code></pre></div>]]></content>
			<author>
				<name><![CDATA[leva.aks]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33621</uri>
			</author>
			<updated>2016-05-31T12:05:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104487#p104487</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104486#p104486" />
			<content type="html"><![CDATA[<p>%nicknameuser%-то откуда берётся?</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-05-31T12:02:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104486#p104486</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104484#p104484" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>2:
Loop
{
URLDownloadToFile, http://сайт.ru/file.txt, C:/file.txt
FileReadLine, linefile, C:/file.txt, %A_Index%
    if ErrorLevel
        break
    If % linefile != %nicknameuser%
URLDownloadToFile, http://сайт.ru/%linefile%.txt, C:/%linefile%.txt
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[leva.aks]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33621</uri>
			</author>
			<updated>2016-05-31T11:56:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104484#p104484</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104483#p104483" />
			<content type="html"><![CDATA[<p>Весь код приведите.<br />P.S.: Цитировать предыдущие посты не надо (п. 2.11).</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-05-31T11:42:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104483#p104483</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104482#p104482" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Flasher пишет:</cite><blockquote><p><strong>leva.aks</strong><br />В таком случае вставка такая:<br /></p><div class="codebox"><pre><code>If % linefile != &quot;Текст ненужной строки&quot;</code></pre></div></blockquote></div><p>Не выходит.</p>]]></content>
			<author>
				<name><![CDATA[leva.aks]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33621</uri>
			</author>
			<updated>2016-05-31T11:36:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104482#p104482</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104481#p104481" />
			<content type="html"><![CDATA[<p><strong>leva.aks</strong><br />В таком случае вставка такая:<br /></p><div class="codebox"><pre><code>If % linefile != &quot;Текст ненужной строки&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-05-31T11:24:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104481#p104481</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104477#p104477" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>leva.aks</strong>, не забываем о точках в конце предложений.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-05-31T11:18:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104477#p104477</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104476#p104476" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong><br />А как сделать по тексту,или узнать номер строки определённого текста.Дело в том что будет известен текст 1 из строк(и то переменная)</p>]]></content>
			<author>
				<name><![CDATA[leva.aks]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33621</uri>
			</author>
			<updated>2016-05-31T11:13:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104476#p104476</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104475#p104475" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>leva.aks пишет:</cite><blockquote><p>после равно ставится текст который пропускать надо?</p></blockquote></div><p><strong><em><span style="color: green">№</span></em></strong> - это номер пропускаемой строки, как и запрошено.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-05-31T11:09:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104475#p104475</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104472#p104472" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>leva.aks пишет:</cite><blockquote><p>Дерективу #SingleInstance&nbsp; я убирал,всё равно.</p></blockquote></div><p>Её не надо убирать, её надо применять, как в хэлпе написано.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-05-31T11:02:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104472#p104472</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка файла на фтп]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104471#p104471" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p><strong>leva.aks</strong>, в сообщении как раз об этом написано.</p></blockquote></div><p>Дерективу #SingleInstance&nbsp; я убирал,всё равно.<br /></p><div class="quotebox"><cite>Flasher пишет:</cite><blockquote><p><strong>If % A_Index != <em><span style="color: green">№</span></em></strong></p></blockquote></div><p>что то не допонял,после равно ставится текст который пропускать надо?Если да то не выходит.</p>]]></content>
			<author>
				<name><![CDATA[leva.aks]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33621</uri>
			</author>
			<updated>2016-05-31T11:00:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104471#p104471</id>
		</entry>
</feed>
