programming Wanting to auto copy individual folder when a SD/USB device is connected.
Go to solution
Solved by Eigenvektor,
28 minutes ago, xco said:I am open to using a one liner. I can save it on a notepad on the desktop and copy paste it into Command Prompt?Â
You can create a .cmd file that you simply need to double click, no copy & pasting needed.
Â
Here's an example that's a bit more than one line, but date in batch files isn't as easy as I thought…
@echo off REM This places the date (yyyy-MM-dd) into ldt for /F "usebackq tokens=1,2 delims==" %%i in (`wmic os get LocalDateTime /VALUE 2^>NUL`) do if '.%%i.'=='.LocalDateTime.' set ldt=%%j set ldt=%ldt:~0,4%-%ldt:~4,2%-%ldt:~6,2% REM This copies the images into a new directory xcopy E:\DCIM\*.jpg G:\Photographs\Photography_Originals\%ldt%\
You could probably create something a bit more readable with PowerShell
Â
Put this into a file (e.g. "copy_images.cmd") and place it on your desktop. Then you can simply double click it to run it.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now