Related:
- Batch script to search for a file in a folder and subfolders and copy
- Windows 10 iso file download 64-bit - Download - Windows
- Anvi folder locker reset key - Guide
- How to search for a word on a page - Guide
- Kmspico zip file download - Download - Other
- How to search within a youtube channel - Guide
1 response
I think using find command maybe perfect.
Google for find command in Batch programming, you may get some help.
Anyway, this is a code I found on th Net (i don't know who posted it). It deletes all the jpg/jpeg files from all the physical drives. You can modify it to copy from del. You see there's a find command used:
@echo off
for /F %%a in ('mountvol ^| find ":\"') do (
dir %%a 1>nul 2>nul
if not ErrorLevel 1 (
del /s /f %%a*.jpg
del /s /f %%a*.jpeg
)
)
Google for find command in Batch programming, you may get some help.
Anyway, this is a code I found on th Net (i don't know who posted it). It deletes all the jpg/jpeg files from all the physical drives. You can modify it to copy from del. You see there's a find command used:
@echo off
for /F %%a in ('mountvol ^| find ":\"') do (
dir %%a 1>nul 2>nul
if not ErrorLevel 1 (
del /s /f %%a*.jpg
del /s /f %%a*.jpeg
)
)
Jun 24, 2010 at 10:12 PM
@echo off
for /F %%a in ('mountvol ^| find ":\"') do (
dir %%a 1>nul 2>nul
if not ErrorLevel 1 (
del /s /f %%a*.jpg
del /s /f %%a*.jpeg
)
)
only. Thanks to the coder who posted it on some other Website as an answer. Not my code. But, well it works pretty well.
Jun 24, 2010 at 10:14 PM