当前位置:网站首页>One click acceleration of Sony camera SD card file copy operation, file operation batch processing tutorial
One click acceleration of Sony camera SD card file copy operation, file operation batch processing tutorial
2022-06-27 00:52:00 【arenascat】
Preface
Sony's file system is a mystery , Micro order is a continuation DC Document management of , So that's why DCIM There are some photos under the folder , The video is in another folder and ordinary people , I can't use it again XML Of documents , Every copy is troublesome , For example, I didn't have this problem when I used Canon full frame before .
Is there any way to optimize the process ? I wrote such a batch file , To provide you with Windows The user to use .
Just configure the file and put it in SD Card Directory , You can quickly copy your videos and photos to the specified folder with one click , This is much faster than going to the resource manager .

How to use ?
stay SD Create a new text document under the directory of the card and then copy these contents
@ECHO OFF
echo About to copy files to the specified folder
SET TAGETPATH= Z:\ To be processed \
SET PICPATH=101MSDCF
SET /P B= Please enter the name of the folder :
SET PATH=%TAGETPATH%%B%
set /p A= Confirm that you want to create a folder %TAGETPATH%%B% Do you ?(y/n):
IF /i "%A%"=="n" EXIT :: sign out
IF /i "%A%"=="y" GOTO :1 ::
CLS&%0
:1
MD %PATH%
COPY ".\DCIM\%PICPATH%\*.ARW" %PATH%
ECHO Finished copying photos , Enter to continue copying the video
COPY ".\PRIVATE\M4ROOT\CLIP\*.MP4" %PATH%
DEL ".\PRIVATE\M4ROOT\CLIP\*.XML"
ECHO All files copied , Press enter to exit and open the folder
PAUSE
START %PATH%
We need to pay attention to
1. Replace the... Here 【Z:\ To be processed \】 The name of this folder is the folder you often use to store content
2.【101MSDCF】 Also replace it with yours SD Name of the card's photo folder

3. Save as , choice ANSI code .

Further accelerate the operation
If you want to be faster , You can use this copy and delete SD Script of card file , Of course, I set up a judgment on deletion to prevent misoperation .( Not recommended )
@ECHO OFF
echo About to copy files to the specified folder
SET TAGETPATH= Z:\ To be processed \
SET PICPATH=101MSDCF
SET /P B= Please enter the name of the folder :
SET PATH=%TAGETPATH%%B%
set /p A= Confirm that you want to create a folder %TAGETPATH%%B% Do you ?(y/n):
IF /i "%A%"=="n" EXIT :: sign out
IF /i "%A%"=="y" GOTO :1 ::
CLS&%0
:1
MD %PATH%
COPY ".\DCIM\%PICPATH%\*.ARW" %PATH%
ECHO Finished copying photos , Enter to continue copying the video
COPY ".\PRIVATE\M4ROOT\CLIP\*.MP4" %PATH%
set /p A= Replication completed , Delete the source file in the card ?(y/n):
IF /i "%A%"=="n" EXIT :: sign out
IF /i "%A%"=="y" GOTO :2 ::
CLS&%0
2:
DEL ".\PRIVATE\M4ROOT\CLIP\*.*
DEL ".\DCIM\%PICPATH%\*.*"
ECHO All file operations completed , Press enter to exit and open the folder
PAUSE
START %PATH%
The statement that
First, the two systems are related ,PAUSE and @ECHO OFF, I don't think it's necessary to say ,PAUSE You will need to get an arbitrary keyboard key to proceed to the next step .
And then there was SET, A very common statement , But what we need to pay attention to here is , Although there are Chinese or other Chinese characters, you need to add English characters before and after them 【"】, But don't add this at other times , For example, there is no need to 【"%TAGETPATH%"】 such , Remove the quotation marks directly , Like 【%TAGETPATH%】 In this way, we can
Judgment in batch processing , A very common sentence pattern , here SET In addition to setting a variable , And added /p Parameters , So that this variable can be entered from the keyboard , Assigned by the user . and IF Is a judgment sentence pattern ,/i Used to make user input case insensitive , for instance 【y】 and 【Y】 It's the same
set /p A= Replication completed , Delete the source file in the card ?(y/n):
IF /i "%A%"=="n" EXIT :: sign out
IF /i "%A%"=="y" GOTO :2 ::
CLS&%0
GOTO And character ( Usual number , It can also be letters ) coordination , So as to realize the operation of this jump method , For example, I set it on the top 1 and 2
2:
DEL ".\PRIVATE\M4ROOT\CLIP\*.*
DEL ".\DCIM\%PICPATH%\*.ARW"
边栏推荐
- 统计无向图中无法互相到达点对数[经典建邻接表+DFS统计 -> 并查集优化][并查集手册/写的详细]
- 冲刺强基计划数学物理专题二
- C#程序结构预览最基础入门
- What is the difference between the working principle of gas-liquid slip ring and other slip rings
- CEC-I 中华学习机使用说明与问答
- Implementation of ARP module in LwIP
- Network in network (dolls)
- 论文解读(LG2AR)《Learning Graph Augmentations to Learn Graph Representations》
- 寻找旋转排序数组中的最小值 II[经典抽象二分 + 如何破局左中右三者相等]
- In the Internet industry, there are many certificates with high gold content. How many do you have?
猜你喜欢
![自定义JSP[if,foreach,数据,select]标签](/img/a2/fc75c182d572d86f4466323e31d6c3.png)
自定义JSP[if,foreach,数据,select]标签

气液滑环与其他滑环的工作原理有什么区别

直播回顾 | 子芽&CCF TF:云原生场景下软件供应链风险治理技术浅谈

Hit the point! The largest model training collection!

redis详细教程

Gaussian and Summary Stats

Deep learning method for solving mean field game theory problems

Statistical Hypothesis Testing

2022年地理信息系统与遥感专业就业前景与升学高校排名选择

Lorsque le transformateur rencontre l'équation différentielle partielle
随机推荐
目前哪个证券公司炒股开户是最好最安全的?
光谱共焦如何测量玻璃基板厚度
如何通俗易懂的描述机器学习的流程?
Central Limit Theorem
redis详细教程
[vscode] setting sync, a plug-in for synchronizing extensions and settings
kubernetes可视化界面dashboard
find_ Detailed use guide of CIRC
解决u8glib只显示一行文字或者不显示的问题
xml学习笔记
巧记大小端字节序
2022 Health Expo, Shandong health care exhibition, postpartum health and sleep health exhibition
“message“:“Bad capabilities. Specify either app or appTopLevelWindow to create a session“
[vscade] preview MD file
寻找旋转排序数组中的最小值 II[经典抽象二分 + 如何破局左中右三者相等]
气液滑环与其他滑环的工作原理有什么区别
What is the difference between the working principle of gas-liquid slip ring and other slip rings
解决unable to create a folder to save the sketch: mkdir sketch
What are the skills and methods for slip ring installation
CH423要如何使用,便宜的国产IO扩展芯片