<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Merge 2 Ascii Files in one]]></title><description><![CDATA[<p dir="auto">I got multiple Ascii Files from my WinCC OA programm and I want to merge them in one so I dont have to Import all one by one. Is there any possibilite to merge them together?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24906/merge-2-ascii-files-in-one</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 09:57:12 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24906.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Sep 2023 08:21:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Merge 2 Ascii Files in one on Tue, 12 Sep 2023 20:52:49 GMT]]></title><description><![CDATA[<p dir="auto">A proposal to clarify posts like this, so that people don’t waste time solving the wrong problem:</p>
<ul>
<li>use the word <strong>concatenate</strong> to refer to the process of taking a bunch of things and <strong>adding them one-after-the-other</strong>.</li>
<li>use the word <strong>merge</strong> to refer to the process of taking a bunch of things and <strong>putting them together so that they overlap.</strong></li>
</ul>
<p dir="auto">For example, the <a href="https://community.notepad-plus-plus.org/topic/24872/is-there-any-alternative-to-merge-files-in-one-plugin?_=1694546136257">link Doğancan posted above</a> goes to a thread where I made a tool to <strong>merge</strong> files (examples in that thread).</p>
<p dir="auto">What everyone has been discussing above appears <strong>concatenation</strong> and should be labeled as such.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89230</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89230</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Tue, 12 Sep 2023 20:52:49 GMT</pubDate></item><item><title><![CDATA[Reply to Merge 2 Ascii Files in one on Tue, 12 Sep 2023 19:21:10 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://community.notepad-plus-plus.org/topic/24872/is-there-any-alternative-to-merge-files-in-one-plugin?_=1694546136257">https://community.notepad-plus-plus.org/topic/24872/is-there-any-alternative-to-merge-files-in-one-plugin?_=1694546136257</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/89228</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89228</guid><dc:creator><![CDATA[Doğancan]]></dc:creator><pubDate>Tue, 12 Sep 2023 19:21:10 GMT</pubDate></item><item><title><![CDATA[Reply to Merge 2 Ascii Files in one on Tue, 12 Sep 2023 06:52:43 GMT]]></title><description><![CDATA[<p dir="auto">PeterJones This Plugin is just for 2 files and still didnt work</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89221</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89221</guid><dc:creator><![CDATA[king_belove]]></dc:creator><pubDate>Tue, 12 Sep 2023 06:52:43 GMT</pubDate></item><item><title><![CDATA[Reply to Merge 2 Ascii Files in one on Mon, 11 Sep 2023 19:05:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> If you use <code>copy /B ...</code> then copy will run in binary mode and won’t append the <code>Ctrl-Z</code> or <strong><code>SUB</code></strong> at the end of the file.</p>
<p dir="auto">To steer this back into Notepad++, I am wondering why <a class="plugin-mentions-user plugin-mentions-a" href="/user/king_belove" aria-label="Profile: king_belove">@<bdi>king_belove</bdi></a> is seeking a combined file when Notepad++ has the ability to search in all opened files, to search/replace in all opened files, etc. One minor annoyance is that Notepad++ does not seem to offer mark in all opened files. There have been times where I constructed a combined file and opened that plus opened all of the files in Notepad++ so that I could do the marking in the combined file and then search/replace in all files if the marked text matches what I expected the search to hit.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89213</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89213</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Mon, 11 Sep 2023 19:05:27 GMT</pubDate></item><item><title><![CDATA[Reply to Merge 2 Ascii Files in one on Mon, 11 Sep 2023 18:39:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> You can do it from inside Notepad++ by selecting <code>Run / Run...</code>, type <code>cmd</code> followed by &lt;Enter key&gt; and then follow <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> 's directions…</p>
<p dir="auto">As there are no built-in Notepad++ features to merge or combine files we either show ways the issue can be solved to do it using things that come with Windows, show how is can be done using a third party tool (which may be a Notepad++ plugin), or say we can’t provide help.</p>
<p dir="auto">I personally am more of fan of using the command prompt’s <code>type</code> command and redirecting the output to the combined file using <code>&gt;&gt;</code>  Here’s an example that also prefaces each file in the combined result with a <code>//</code> style comment containing the file name being merged into the combined file:</p>
<pre><code class="language-.bat">rem Clear the combined.txt file
cd . &gt;%TEMP%\combined.txt

rem Merge all of the txt files in "c:\WinCC OA" into combined.txt
for %i in ("c:\WinCC OA\*.txt") do (echo // ---- %~fi ---- &gt;&gt;%TEMP%\combined.txt &amp; type "%i" &gt;&gt;%TEMP%\combined.txt)

rem Walk the directory tree starting at "c:\WinCC OA" and merge all of *.txt into combined.txt
for /R "c:\WinCC OA" %i in (*.txt) do (echo // ---- %~fi ---- &gt;&gt;%TEMP%\combined.txt &amp; type "%i" &gt;&gt;%TEMP%\combined.txt)

rem Open combined.txt in Notepad++ (assuming .txt is mapped to Notepad++)
start %TEMP%\combined.txt
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/89212</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89212</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Mon, 11 Sep 2023 18:39:33 GMT</pubDate></item><item><title><![CDATA[Reply to Merge 2 Ascii Files in one on Mon, 11 Sep 2023 15:30:50 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/king_belove" aria-label="Profile: king_belove">@<bdi>king_belove</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> said :</p>
<blockquote>
<p dir="auto">If you were asking how to merge files in general, then Guy’s method will obviously work – however, it’s off topic for a Notepad++ forum (even though, in most circumstances, it’s probably more efficient to try to do the merge outside of Notepad++, as was shown).</p>
</blockquote>
<p dir="auto">Ah my bad ! Sorry, <strong>peter</strong>, but I wanted to talk about this <strong>simple</strong> DOS method that very <strong>few</strong> people think of, at first !</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89206</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89206</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 11 Sep 2023 15:30:50 GMT</pubDate></item><item><title><![CDATA[Reply to Merge 2 Ascii Files in one on Mon, 11 Sep 2023 13:10:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/king_belove" aria-label="Profile: king_belove">@<bdi>king_belove</bdi></a> ,</p>
<p dir="auto">If you were asking how to merge files in general, then Guy’s method will obviously work – however, it’s off topic for a Notepad++ forum (even though, in most circumstances, it’s probably more efficient to try to do the merge outside of Notepad++, as was shown).</p>
<p dir="auto">If you were asking how to merge files inside Notepad++, then the off-topic answer doesn’t actually meet the requirements.  There is apparently a <strong>Merge files in one</strong> plugin available through Notepad++'s <strong>Plugins &gt; Plugins Admin</strong>, which may or may not meet your needs (I’ve never used it, so I cannot say whether it would meet your needs or not).  Or one could write their own script for the PythonScript or similar scripting plugin, if one knew one of the available scripting languages.</p>
<p dir="auto">Please remember to keep questions and answers focused on Notepad++ (and to only answer with the <em>details</em> of a non-Notepad++ solution if it’s is, to your knowledge, impossible to do inside of Notepad++).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89201</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89201</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 11 Sep 2023 13:10:16 GMT</pubDate></item><item><title><![CDATA[Reply to Merge 2 Ascii Files in one on Mon, 11 Sep 2023 12:15:32 GMT]]></title><description><![CDATA[<p dir="auto">@guy038Thanks for your fast answer it worked</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89197</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89197</guid><dc:creator><![CDATA[king_belove]]></dc:creator><pubDate>Mon, 11 Sep 2023 12:15:32 GMT</pubDate></item><item><title><![CDATA[Reply to Merge 2 Ascii Files in one on Mon, 11 Sep 2023 15:22:42 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/king_belove" aria-label="Profile: king_belove">@<bdi>king_belove</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">The best way to merge <strong>any</strong> number of files in a <strong>single</strong> file is to follow these steps :</p>
<ul>
<li>
<p dir="auto">Create a <strong>new</strong> directory on your machine, called, for instance, <strong><code>Test_Merge</code></strong></p>
</li>
<li>
<p dir="auto">Copy <strong>all</strong> the files, to be merged, in the <strong><code>Test_Merge</code></strong> <strong>folder</strong> ( Note that these files can come from <strong>different</strong> directories ! )</p>
</li>
<li>
<p dir="auto">Then, open a <strong>DOS</strong> prompt window</p>
</li>
<li>
<p dir="auto">Type and valid the <strong>DOS</strong> command <strong><code>cd /d \Test_Merge</code></strong></p>
</li>
<li>
<p dir="auto">Verify with a simple <strong>DOS</strong> command <strong><code>dir</code></strong> that the <strong><code>Test_Merge</code></strong> folder does contain all your <strong>desired</strong> files</p>
</li>
<li>
<p dir="auto">Now, type and valid the <strong>DOS</strong> command <strong><code>copy * Total.txt</code></strong>, with a <strong>space</strong> <em>BEFORE</em> and <em>AFTER</em> the <strong>star</strong> symbol</p>
</li>
<li>
<p dir="auto">Start Notepad++</p>
</li>
<li>
<p dir="auto">Open the <strong><code>..\Test_Merge\Total.txt</code></strong> file</p>
</li>
<li>
<p dir="auto">Go to the <strong>very end</strong> of the file ( <strong><code>Ctrl + End</code></strong> )</p>
</li>
<li>
<p dir="auto">Delete the <strong>single</strong> <strong><code>SUB</code></strong> character</p>
</li>
<li>
<p dir="auto">Save the <strong><code>Total.txt</code></strong> file</p>
</li>
</ul>
<p dir="auto">Here you are !</p>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89194</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89194</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 11 Sep 2023 15:22:42 GMT</pubDate></item></channel></rss>