New
#11
I think a pipe "|" might be useful -- you have to consult DOS source, I am heading for school.
I think a pipe "|" might be useful -- you have to consult DOS source, I am heading for school.
Yes. That is a relatively easy change to make. Use MultiCopy2.bat (attached in a .zip). Drop the extracted .bat into the folder where you want to make duplicates and run it, you'll be asked for a file name and the number of copies. This one can cope with spaces in the file name.
Well, normally I'd say just ask away, but this could grow into a very long thread that way... I still have a lot to learn ..
I Googled for a CMD guide for you, there are many out there, but most are not very good. The link I gave at the bottom of post #7 is the best one I found, if you wish to learn more.
Thank you a billion. That helps . Now i can finally continue on with my image editing. This will help my productivity thanks !
- - - Updated - - -
Thanks everyone for your suggestions and help. But Bree That final edit to your Multicopy was gold.
Exactly what I wanted. So thanks again. This will help in my image editing to move along a little quicker .
A .bat file is just a text file with a list of CMD commands in it. As I said, this is a good primer for using CMD despite being written in the days of XP (the basics haven't changed since then).
Beginners Guides: Windows Command Prompt - PCSTATS.com
They also have one on Batch files.
Beginners Guides: Understanding and Creating Batch Files - PCSTATS.com
I ran the bat in CMD but for some reason i can't get it to run, what line do i edit?
Thank you so much V2 Bat works great but i want them to go in another folder after copy, and instead of copy could it be possible to just move/rename? isnt that mv?
EDIT:
I figured out what you meant, i just wanted it to copy only that file. is it possible to add a break and then copy another file name at the same time? and is it possible to automatically rename, lets say i already have Copy 1 and i run the Bat again, and i make 1 copy it would replace, i want it not to replace but rename. i've been messing around this some commands but i can't seem to get what i want.
- - - Updated - - -
I figured some of it out, i think im getting the hang of this.
I still trying to find out how to load and copy both files at once, so i just run the bat and it automatically copies and renames both files once. i know this was intended for copying a single file multiple times and this led me to the right track. i might be over thinking this and it might be simple. lol
Last edited by Mizzy; 05 Apr 2020 at 09:28.
This .bat was written to meet the the needs of the OP, specifically to make multiple copies of one file. Your needs are different, and this .bat doesn't meet them. Rather than adapting it, you should start from scratch, maybe using some of the techniques learned from my examples.
Writing a batch file is as much an exercise in programming as is writing the C++ code to compile into a program. First you should write down in simple language the steps you want it to take, and what steps it should take should certain conditions occur (eg, a pre-existing file name). Write it as a simple set of instructions a person could follow manually, without needing much in-depth understanding. Then take those simple instructions and translate them into an appropriate sequence of commands to put in a batch file.
The key to writing an effective batch file is to have a clear idea of what you want it to do and how it should cope with unexpected situations before you start writing the actual commands.
... i've been messing around this some commands but i can't seem to get what i want.
I don't have a clear idea of what you want, so can't really suggest suitable changes. You may well find that just by taking a step back and trying to explain in simple language the steps you want to achieve, then the way to do it would become clear.