Auto Duplicate file X Times ?

Page 2 of 4 FirstFirst 1234 LastLast

  1. Posts : 1,614
    Windows 10 Home
       #11

    I think a pipe "|" might be useful -- you have to consult DOS source, I am heading for school.
      My Computer


  2. Posts : 24,631
    10 Home x64 (21H2) (10 Pro on 2nd pc)
       #12

    OtherWay1982 said:
    Is there a way to make it work without any need of the CMD ? ... I just drop that .bat into the folder and press it...

    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.

    ... I still have a lot to learn ..
    Well, normally I'd say just ask away, but this could grow into a very long thread that way

    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.
    Auto Duplicate file X Times ? Attached Files
      My Computers


  3. Posts : 197
    Windows 10 Home
    Thread Starter
       #13

    Bree said:
    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 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 .
      My Computer


  4. Posts : 24,631
    10 Home x64 (21H2) (10 Pro on 2nd pc)
       #14

    OtherWay1982 said:
    .. Bree That final edit to your Multicopy was gold. Exactly what I wanted....
    glad to help.
      My Computers


  5. Posts : 197
    Windows 10 Home
    Thread Starter
       #15

    Bree said:
    glad to help.
    Yea id like to learn what you know too. if you could give me books resources online or whatever to learn .bat batch language any advice you can give could be useful maybe i should start learning this myself. Thanks again.
      My Computer


  6. Posts : 24,631
    10 Home x64 (21H2) (10 Pro on 2nd pc)
       #16

    OtherWay1982 said:
    Yea id like to learn what you know too. if you could give me books resources online or whatever to learn .bat batch language any advice you can give could be useful maybe i should start learning this myself. Thanks again.
    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
      My Computers


  7. Posts : 197
    Windows 10 Home
    Thread Starter
       #17

    Bree said:
    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
    Thank you. Ill read this today.
      My Computer


  8. Posts : 10
    Windows 10
       #18

    Bree said:
    The bat file need no modification, just copy all of the text in the code box and save it as MultiCopy.bat. I made it pause after each copy so it's easy to use Ctrl+C to stop it if needed. Just press and hold any key (the spacebar, for instance) if you want to let it run fast.


    To use it, put a copy of the .bat in the folder where you want to make the duplicates. Open a command prompt, go to that folder with the CD command, then type:

    MULTICOPY followed by the number of copies you want, then the name of the file you want to duplicate.

    for example:

    Multicopy 4 test.txt

    Attachment 252020
    I ran the bat in CMD but for some reason i can't get it to run, what line do i edit?
    Auto Duplicate file X Times ?-code.png
    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:
    Auto Duplicate file X Times ?-copy.jpg
    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.Auto Duplicate file X Times ?-code.png
    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.
      My Computer


  9. Posts : 24,631
    10 Home x64 (21H2) (10 Pro on 2nd pc)
       #19

    Mizzy said:
    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...

    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.
      My Computers


  10. Posts : 13,934
    Windows 10 Pro X64 21H1 19043.1503
       #20

    My curiosity is peaked! @OtherWay1982, can you tell me why you need (or want) to do this?
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 11:36.
Find Us




Windows 10 Forums