You are here: PSPad forum > English discussion forum > Re: Sugest

Re: Sugest

Goto Page: 1 2 Next

#1 Sugest

Posted by: maki | Date: 2020-06-23 14:37 | IP: IP Logged

Suggestion:

I suggest you [ Add ] a function or plugin, open it, select folders, add paths. Simple, easy and fast. The addition is very fast.
And it doesn't require opening files in a PSPad, but you only have paths !!!

image

Edited 1 time(s). Last edit at 2020-06-23 14:38 by maki.

Options: Reply | Quote | Up ^


#2 Re: Sugest

Posted by: pspad | Date: 2020-06-23 14:39 | IP: IP Logged

Reason? Open 10 000+ files in text editor is nonsense.

Options: Reply | Quote | Up ^


#3 Re: Sugest

Posted by: pspad | Date: 2020-06-23 14:43 | IP: IP Logged

In the Project menu you have option to make project from Folder. It's quite fast - put there your root folder.

When you click on the root folder, you can let PSpad open folder files and it will open all files from project. But for your case open 10 000+ files has no sense.

Options: Reply | Quote | Up ^


#4 Re: Sugest

Posted by: maki | Date: 2020-06-23 14:45 | IP: IP Logged

Try to understand. I don't say anything about opening ...
Not "opening files" but adding paths, and the program will already process through path lists to files.

Example:

image

Options: Reply | Quote | Up ^


#5 Re: Sugest

Posted by: pspad | Date: 2020-06-23 15:20 | IP: IP Logged

Merge 10 000+ files isn't work for text editor.

There are possibility like use CAT (you need to find it for Win), or user PowerShell:
Get-ChildItem -path i:\test -recurse |?{ ! $_.PSIsContainer } |?{($_.name).contains(".html")} | %{ Out-File -filepath i:\test\result.html -inputobject (get-content $_.fullname) -Append}

But it's slow.

The fastest way is temporary copy all files into one folder, use COPY command and delete your files.

I won't add this functionality for your one time usage.

Options: Reply | Quote | Up ^


#6 Re: Sugest

Posted by: pspad | Date: 2020-06-23 15:25 | IP: IP Logged

Or faster command include subfolders:
cd \rootfolder
FOR /R %f in (*.html) DO TYPE %f >> mergedfile.html

Options: Reply | Quote | Up ^


#7 Re: Sugest

Posted by: maki | Date: 2020-06-23 16:28 | IP: IP Logged

Your examples...

Merged files are corrupt.
"Null character" (editor information that the file is corrupted).
Open file in editor, strange characters and incomplete.
Changing the encoding does not solve the problem. (Windows 1251 Cyrillic) (Not UTF-8!)
Errors: null character ". File is corrupted.

Edited 1 time(s). Last edit at 2020-06-23 16:30 by maki.

Options: Reply | Quote | Up ^


#8 Re: Sugest

Posted by: pspad | Date: 2020-06-23 17:00 | IP: IP Logged

Now we see your files has different encoding, nobody knows anything about your files content.

It's up to you to solve your problem - settings code page in command window, fix your files before merging, change code page to one common, ...

Again, Merging 10 000+ different files isn't job for text editor, but for some file merging tool.

Options: Reply | Quote | Up ^


#9 Re: Sugest

Posted by: maki | Date: 2020-06-23 17:17 | IP: IP Logged

My files are fine, only the applications don't respond. For testing, I limited the number of folders to 200 folders and 605 files. Added in a second and merged in a second.
Encoding and file structure intact (undamaged)!

I will gladly use third-party applications, only that I do not know the program.
I have tried many but failed to merge or as I said, the application is not responding (hang).

Merging piece by piece is also pointless. I just want to have one file and do not want to combine with some small parts of files and waste unnecessary time on it, for some small parts.

The most problematic can be if the [SOME] html file really contains a lot of text, a lot,
much more than 1,000,000+ characters, although the file is not large(!)

Edited 2 time(s). Last edit at 2020-06-23 17:23 by maki.

Options: Reply | Quote | Up ^


#10 Re: Sugest

Posted by: maki | Date: 2020-06-23 17:31 | IP: IP Logged

See the source code for merging multiple files, maybe something useful?
http:// fmwww.bc .edu/repec/bocode/m/mergemany.ado

URL disabled by moderator.

Edited 1 time(s). Last edit at 2020-07-01 15:08 by Stefan.

Options: Reply | Quote | Up ^


Goto Page: 1 2 Next





Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR