Mutilple images copy

balramC

New member
Local time
9:45 AM
Messages
1
i have 500 mutliple UNC path's of images.
how can i copy as images through script
 

My Computer

Computer type
PC/Desktop
OS
Windows 10
Hi balramC,

Welcome to SevenForums!

Batch script

Code:
for /R "C:\" %%G in (*.png *.jpg *.jpeg *.gif) do copy "%%G" "E:\allPictures\"
pause
PowerShell script

Code:
Get-ChildItem -Path "C:\Users\UserName\Pictures\*" -Include *.jpg,*.png -Recurse | Copy-Item -Destination D:\

You have to modify the code to your origin and destination folders accordingly.
The * are wildcards that applies all inclusive i.e. *.jpg is all the jpegs in that folder or directory or drive Path "C:" would be all directories\subdirectories\files.jpg of C drive.

Bit of Googling on your part and you are good to go.

I prefer to use Notepad++ which is M$ Notepad & Word on Steroids!

Noptepad++ Ninite one-click-installer

When you save the Batch script its whatever name you wish with the .bat extension. The filetype when you save has to be All
For PowerShell extension is .ps1 and save is all filetypes again.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Desktop & Compaq Laptop
OS
Win 10 x64, Linux Lite, Win 7 x64, BlackArch, & Kali
Hard Drives
Samsung 850 Pro 256Gb,
Hitachi HDD 1Tb,
Crucial MX SSD 250Gb
Segate 3Tb USB 3.0 Ext. Backup HDD
Internet Speed
150Mbps dn, 20Mbps up
Antivirus
Avast Free, Malwarebytes Anti-Exploit & Anti-Ransomware
Browser
Firefox, Chrome, Opera, & VPN
Back
Top