Move or Copy List of Files

  Рет қаралды 2,953

William Campbell

William Campbell

Жыл бұрын

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-h1t
@JayKing-h1t 20 күн бұрын
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.
@ABZohur
@ABZohur 2 ай бұрын
You saved my day! This is exactly what I was looking for!
@user-autofiber
@user-autofiber Ай бұрын
thanks for your video
@davesheehan7990
@davesheehan7990 Жыл бұрын
Great video, very clear. Thank you.
@omarlarrota6857
@omarlarrota6857 Жыл бұрын
Hi William, it works, thanks for your video
@VaughnCampbell
@VaughnCampbell 7 ай бұрын
Wow, that was incredibly useful.
@JayKing-h1t
@JayKing-h1t 4 күн бұрын
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
@bharamappabandak9226 Жыл бұрын
Very useful sir 👌👌👌
@wc7
@wc7 Жыл бұрын
Thanks
@bharamappabandak9226
@bharamappabandak9226 Жыл бұрын
@@wc7 well come🙏🙏
@TheWhiplax
@TheWhiplax 10 ай бұрын
Thank you so much
@msamiullah001
@msamiullah001 4 ай бұрын
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
@wc7
@wc7 4 ай бұрын
I don't know a way to do the same with folders.
@joecarpenter8406
@joecarpenter8406 5 ай бұрын
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.
@wc7
@wc7 5 ай бұрын
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.
@wc7
@wc7 5 ай бұрын
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_creation
@ths_creation 3 ай бұрын
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 ;-)
@wc7
@wc7 3 ай бұрын
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_creation
@ths_creation 3 ай бұрын
@@wc7 Thanks for quick response. I will give it a try
@MuhammadAdeelSuleman
@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
@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.
@MdubFrederson
@MdubFrederson 2 ай бұрын
How do you move the file while maintaining the directory structure???
@wc7
@wc7 2 ай бұрын
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.
@mjabeer
@mjabeer Жыл бұрын
Best
How many Chrome tabs can you open with 2TB RAM?
12:51
Linus Tech Tips
Рет қаралды 11 МЛН
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 49 МЛН
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 12 МЛН
Linux Drives; Connect, Partition, Format, Mount, and Use
15:59
RetiredTechie
Рет қаралды 154
10 REASONS why Linux Mint is the desktop OS to beat in 2023
15:14
InfinitelyGalactic
Рет қаралды 191 М.
How and why I switched to Linux
12:22
Thomas Midena
Рет қаралды 174 М.
5 TWEAKS that improve Linux Mint!
12:35
InfinitelyGalactic
Рет қаралды 129 М.
PowerShell in Intune - How to Copy file(s) (1/3)
21:53
Intune & Vita Doctrina
Рет қаралды 7 М.
How to Move Files and Directories in Linux
9:43
ProgrammingKnowledge2
Рет қаралды 36 М.
The Linux Experience
31:00
Bog
Рет қаралды 592 М.
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 7 МЛН
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 606 М.