Nov-05-2019, 10:07 AM
Hello!
I want to merge all of the txt-files I have in a specific folder on my computer. I looked it up and apparently you have to use the following code/command in Powershell:
Is there a way to fix this issue or an easy way to do it in Python? I looked it up, but so far I only found code snippets in which you have to type all of the filenames. Because it's more than 200 files with completely different names, this isn't a good solution for me.
Thank you in advance for your kind help!
I want to merge all of the txt-files I have in a specific folder on my computer. I looked it up and apparently you have to use the following code/command in Powershell:
copy *.txt newfile.txtHowever, when I give this command, all I get is "newfile.txt" that only contains a copy of the very first txt-file in my folder, but nothing else. So it didn't really work when I tried to merge them.
Is there a way to fix this issue or an easy way to do it in Python? I looked it up, but so far I only found code snippets in which you have to type all of the filenames. Because it's more than 200 files with completely different names, this isn't a good solution for me.
Thank you in advance for your kind help!