martedì 11 settembre 2012

A batch to download photos from sd card to PC

These MS-DOS batch lines are useful to transfer your photos from SD card to a destination folder on your PC in an easy, quick and organized way. The batch also puts raw files in a separate folder. If you want them in the same folder you can always modify it.

Here there are the batch lines:

cls
@echo OFF
ECHO 1)-Creating folders: %1 , %1\RAWs, %1\Pano_Source
ECHO                 .
mkdir "DESTINATION PATH"\%1
ECHO                 ..
mkdir "DESTINATION PATH"\%1\RAWs
ECHO                 ...
mkdir "DESTINATION PATH"\%1\Pano_Source
ECHO 2)-Copying files...
ECHO      WAIT PLEASE!
for /D /R SOURCE_DISK_LETTER:\ %%e IN (*DCIM) DO xcopy %%e\*.jpg "DESTINATION PATH"\%1  /v /q
for /D /R SOURCE_DISK_LETTER:\ %%e IN (*DCIM) DO xcopy %%e\*.RAW_FILES_EXTENSION"\%1\RAWs  /v /q
explorer "DESTINATION PATH"\%1

ECHO Operation completed.
pause()
exit



Open notepad, paste these lines in it and personalize them on your needs. Now save the file as *.bat
You will lunch it from a DOS prompt [windows menu>>>run "cmd" then go to the folder where the .bat file has been saved: cd "file folder path"]. To call it digit the name of the batch file followed by the name you want to give to the final work folder: YOUR_FILE_NAME.bat "Your work folder name".
Pano_source is an empty folder where photos wich have to be stiched in a panorama will be manually moved; you can delete the line "mkdir "DESTINATION PATH"\%1\Pano_Source" if you retain you don't need this folder....as you can add many other folders on your needs.

Leave a comment if you appreciate or have some troubles.

Have fun!

9 commenti:

Anonimo ha detto...

I really liked your blog! It helped me alot… Awesome. Exactly what I was looking for. Thanks!

Anonimo ha detto...
Questo commento è stato eliminato da un amministratore del blog.
Anonimo ha detto...

I have to say, while looking through hundreds of blogs daily, the theme of this blog is different (for all the proper reasons). If you do not mind me asking, what's the name of this theme or would it be a especially designed affair? It's significantly better compared to the themes I use for some of my blogs.

Massi ha detto...

The theme is an old theme of Blogger I tweaked a bit ;-)...there's a little banal trick

Anonimo ha detto...

Wow, superb blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is fantastic, as well as the content!

Massi ha detto...

I'm blogging since about 2005 :-) thx for your compliments.

Anonimo ha detto...

An impressive share, I just given this onto a colleague who was doing a little analysis on this. And he in fact bought me breakfast because I found it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I feel strongly about it and love reading more on this topic. If possible, as you become expertise, would you mind updating your blog with more details? It is highly helpful for me. Big thumb up for this blog post!

Massi ha detto...

What do you want to read on this?
To learn something more on Win batch read here: http://commandwindows.com/index.html . It's really easy...you can do nice operations in a short learning time.

In two or three weeks I'll post an article on exposure fusion, deeply explained. It's an interesting multishot technique to greatly reduce noise in photos.

Anonimo ha detto...

Never thought blogging could be soo fun and interesting. Man you know how to do it brother.