mersenneforum.org  

Go Back   mersenneforum.org > New To GIMPS? Start Here! > Information & Answers

Reply
 
Thread Tools
Old 2008-04-28, 23:49   #1
roger
 
roger's Avatar
 
Oct 2006

22·5·13 Posts
Default copy all files

What dos command is used to copy all files in a folder into a single file?

Thanks!
roger is offline   Reply With Quote
Old 2008-04-29, 01:57   #2
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

2×3×23×31 Posts
Default

copy * newcombinedfilename

Try using "copy /?" or "copy -?" (or equivalent for whatever command you're trying to use) next time when wondering about anything command line.
Mini-Geek is offline   Reply With Quote
Old 2008-04-29, 03:53   #3
roger
 
roger's Avatar
 
Oct 2006

26010 Posts
Default

Right now I'm using

copy /B file1+file2+...+lastfile combinedfile

but then I have to type every file name in, wasn't there a command to reduce all files within a folder into one file?

Thanks

Last fiddled with by roger on 2008-04-29 at 03:54
roger is offline   Reply With Quote
Old 2008-04-29, 05:04   #4
sdbardwick
 
sdbardwick's Avatar
 
Aug 2002
North San Diego County

73510 Posts
Default

copy *.* newfilename
sdbardwick is online now   Reply With Quote
Old 2008-04-29, 11:51   #5
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

2·3·23·31 Posts
Default

Quote:
Originally Posted by roger View Post
Right now I'm using

copy /B file1+file2+...+lastfile combinedfile

but then I have to type every file name in, wasn't there a command to reduce all files within a folder into one file?

Thanks
I meant to actually put in the "*" (or *.*), as sdbardwick showed. The * of course is a wildcard that means anything. You could do *.txt for anything ending in .txt or *NPLB* for anything with NPLB in the name.

e.g. if I want every single file in the current folder to go into a file called combined.txt I'd do "copy * combined.txt"
e.g. if I want every .txt file as binary in the current folder to go into a file called combinedfile I'd do "copy /B *.txt combinedfile"

You could also use a .zip on the lowest compression. This would produce a slightly different effect, as the files aren't one file anymore and are easily split back up, but it would be an easier, no-command line way to consolidate files.
Mini-Geek is offline   Reply With Quote
Old 2008-04-30, 00:33   #6
potonono
 
potonono's Avatar
 
Jun 2005
USA, IL

193 Posts
Default

If you copy *.* in the current folder, you'll probably want to make sure the destination is in some other folder... i.e.

copy c:\your_dir\*.* c:\other_dir\combined.txt
potonono is offline   Reply With Quote
Old 2008-04-30, 01:55   #7
roger
 
roger's Avatar
 
Oct 2006

22·5·13 Posts
Default

There we go, it's working now

Thanks!
roger is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting log files or other text files Xyzzy Forum Feedback 3 2018-12-30 19:37
Is there a copy of "the" aliquot tree anywhere? Dubslow Aliquot Sequences 11 2016-11-02 05:05
Official "String copy Statement Considered Harmful" thread Dubslow Programming 19 2012-05-31 17:49
copy/paste k*b^n+c Mini-Geek Lounge 3 2010-12-16 19:02
Help using .ini files only in v24 petrw1 PrimeNet 1 2008-10-15 03:24

All times are UTC. The time now is 16:26.


Tue Jul 5 16:26:07 UTC 2022 up 82 days, 14:27, 1 user, load averages: 1.23, 1.43, 1.31

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔