How to move or copy a list of files using a batch file in Windows and shell script in macOS. Download the batch files and scripts: www.marspremedia.com/download...
Пікірлер: 24
@JayKing-h1t20 күн бұрын
Thank you, I have been looking for this solution for a very long time. I have subscribed and look forward to going through your other videos.
@ABZohur2 ай бұрын
You saved my day! This is exactly what I was looking for!
@user-autofiberАй бұрын
thanks for your video
@davesheehan7990 Жыл бұрын
Great video, very clear. Thank you.
@omarlarrota6857 Жыл бұрын
Hi William, it works, thanks for your video
@VaughnCampbell7 ай бұрын
Wow, that was incredibly useful.
@JayKing-h1t4 күн бұрын
I have been using this a lot. Is there a was of making this recursive, so I can run it on a directory and sub directories
@bharamappabandak9226 Жыл бұрын
Very useful sir 👌👌👌
@wc7 Жыл бұрын
Thanks
@bharamappabandak9226 Жыл бұрын
@@wc7 well come🙏🙏
@TheWhiplax10 ай бұрын
Thank you so much
@msamiullah0014 ай бұрын
this is great, thanks how to add folders to copy also? right now it copy files in folders but if I want to copy the whole folder in same structure
@wc74 ай бұрын
I don't know a way to do the same with folders.
@joecarpenter84065 ай бұрын
Very helpful. I would like to copy files listed in a text file with full path names from drive d: to the same path on drive i: . The paths already exist on drive i. Would very much appreciate any suggestions.
@wc75 ай бұрын
I don't have time to test, but off the top of my head you should be able to use the "move full paths" batch file and change "do move" to "do copy". macOS change "mv" to "cp". Update the source path of course. In the batch file, instead of "%%~fa" use the new full path and existing file name. For example: "I:\destinationpath\%%a". I *think* that would work, but not positive. You have to search the web for how the variables work to get it right. Do some experimentation. That's how I got this far.
@wc75 ай бұрын
Here's a link that shows some of the DOS variable variations for files: www.alttechnical.com/knowledge-base/windows/102-file-name-variables-in-windows-batch
@ths_creation3 ай бұрын
Wow, that was very helpful. Do you know if it's possible to put in wild cards in the batch file code or in the file names in the list? I have a list of files. In the folder there are files with the same name as in the list but some of the files has a suffix. (i.e. in the list i have THS-HK-004 and in the folder I have THS-HK-004.pdf and THS-HK-004 Rev 01.pdf and THS-HK-004_rev2.pdf and I want all three of them copied to the new folder) I know it's not very structured how the files are saved, but in the project there are many workers who save the files, and not everyone follow the rules ;-)
@wc73 ай бұрын
I don't know. Never tried wild cards. My file lists are exact. Give it a try. Probably would work given it's made of dos/shell commands. Also study more about the commands used, that might provide the answer.
@ths_creation3 ай бұрын
@@wc7 Thanks for quick response. I will give it a try
@MuhammadAdeelSulemanАй бұрын
Hi Sir, hope you are going well Plz help me to move the same extension files from multiple folders to different & specific folders. Thanks
@wc7Ай бұрын
That's a lot to ask of a batch script. A bit more than I know how to accomplish. It would take some research. Which platform, by the way? Each is different how to do this stuff in batch/shell scripts.
@MdubFrederson2 ай бұрын
How do you move the file while maintaining the directory structure???
@wc72 ай бұрын
I don't think a batch file can do that, that I'm aware of anyway. Maybe someone else has found a way and can comment.