<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; CMD/BAT: Как организовать перевод ECHO строки без разрыва слов?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8143&amp;type=atom" />
	<updated>2013-03-13T13:46:52Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8143</id>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Как организовать перевод ECHO строки без разрыва слов?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70243#p70243" />
			<content type="html"><![CDATA[<p><strong>alexii</strong> Спасибо!<br />Буду попровать...</p>]]></content>
			<author>
				<name><![CDATA[privatbox]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29790</uri>
			</author>
			<updated>2013-03-13T13:46:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70243#p70243</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Как организовать перевод ECHO строки без разрыва слов?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70226#p70226" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>alexii, эту тему я читал. Не совсем то...</p></blockquote></div><p>Естественно, не совсем то <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" />. Общий подход.</p><div class="quotebox"><blockquote><p>Кстати, а как узнать текущую ширину окна консоли?</p></blockquote></div><p>В указанной теме был предложен один из возможных вариантов:<br /></p><div class="codebox"><pre><code>rem ==========================================================================
rem Процедура GetConsoleWidth
rem 
rem %1 : имя переменной для возврата (ширина окна консоли - 1)
rem ==========================================================================
:GetConsoleWidth
    setlocal enableextensions enabledelayedexpansion
    
    rem ---- Получаем (ширина окна консоли - 1) ------------------------------
    for /f &quot;tokens=2&quot; %%i in (&#039;start /wait /b mode con: ^| find.exe /i &quot;Столбцы&quot;&#039;) do set /a intCols=%%i - 1
    
    endlocal &amp; set /a %~1=%intCols%
    exit /b 0
rem ==========================================================================</code></pre></div>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2013-03-13T09:51:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70226#p70226</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Как организовать перевод ECHO строки без разрыва слов?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70221#p70221" />
			<content type="html"><![CDATA[<p><strong>alexii</strong>, эту тему я читал. Не совсем то...<br />Но все равно, спасибо!<br />Кстати, а как узнать текущую ширину окна консоли?</p>]]></content>
			<author>
				<name><![CDATA[privatbox]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29790</uri>
			</author>
			<updated>2013-03-13T07:47:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70221#p70221</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Как организовать перевод ECHO строки без разрыва слов?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70207#p70207" />
			<content type="html"><![CDATA[<p><strong>privatbox</strong>, посмотрите сюда: <a href="http://forum.script-coding.com/viewtopic.php?id=2945">CMD/BAT: вывод текста без переноса на новую строку</a>. Общие принципы будут схожи. А так — получение ширины окна консоли, определение длины строки, разбиение строки на слова и т.п.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2013-03-12T14:51:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70207#p70207</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Как организовать перевод ECHO строки без разрыва слов?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70202#p70202" />
			<content type="html"><![CDATA[<p>Командой&nbsp; ECHO нужно вывести на эран сообщение.<br />Если длина строки сообщения превышает ширину экрана, остаток текста отображается в следующей строке экрана. <br />Но зачастую при этом часть слова остается в первой строке, а остаток переносится на вторую.</p>]]></content>
			<author>
				<name><![CDATA[privatbox]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29790</uri>
			</author>
			<updated>2013-03-12T12:24:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70202#p70202</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Как организовать перевод ECHO строки без разрыва слов?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70188#p70188" />
			<content type="html"><![CDATA[<p><strong>privatbox</strong>, поясните Вашу мысль. Я не понял.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2013-03-11T20:11:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70188#p70188</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Как организовать перевод ECHO строки без разрыва слов?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70187#p70187" />
			<content type="html"><![CDATA[<p>Средствами cmd вряд ли. С помощью небольшой инъекции JScript - возможно.</p>]]></content>
			<author>
				<name><![CDATA[Rumata]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24846</uri>
			</author>
			<updated>2013-03-11T19:28:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70187#p70187</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[CMD/BAT: Как организовать перевод ECHO строки без разрыва слов?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=70182#p70182" />
			<content type="html"><![CDATA[<p>Здравствуйте всем! <br />Можно ли организовать автоматический перевод строки в CMD-окне без разрыва слов при необходимости вывода длинного ECHO- сообщения?<br />Конечно, можно его разбить на несколько ECHO команд, но не хотелось бы.<br />Может быть это воможно?</p>]]></content>
			<author>
				<name><![CDATA[privatbox]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29790</uri>
			</author>
			<updated>2013-03-11T18:21:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=70182#p70182</id>
		</entry>
</feed>
