30 lines
823 B
Batchfile
30 lines
823 B
Batchfile
::set defpath="C:\Users\GRAFF interactive\Documents\MAVISlogs"
|
|
::set shotpath="C:\Users\GRAFF interactive\Documents\MAVISlogs\áªà¨è®âë"
|
|
::set kppath="C:\Users\GRAFF interactive\Documents\MAVISlogs\ª¯"
|
|
::set netpath="\\GRAFFSRV\Work\!_Assets\MAVISlogs"
|
|
::set morgifypath=C:\Users\GRAFF interactive\Downloads\ImageMagick-7.1.0-portable-Q8-x64\mogrify.exe
|
|
set defpath=%1
|
|
set shotpath=%2
|
|
set kppath=%3
|
|
set netpath=%4
|
|
set mgrPath=%~dp0\mogrify.exe
|
|
set defvidpath=%5
|
|
set vidpath=%6
|
|
|
|
rem convert kp to jpg
|
|
cd /d %kppath%
|
|
%mgrPath% -format jpg *.png
|
|
|
|
rem convert screenshots to jpg
|
|
cd %shotpath%
|
|
%mgrPath% -adaptive-resize 1920 -quality 80 *photo_?.jpg
|
|
|
|
del *.png
|
|
|
|
rem move video to client folder
|
|
robocopy %vidpath% %defvidpath% /mov
|
|
|
|
rem copy all data to network
|
|
if %netpath% NEQ "" robocopy %defpath% %netpath% /mir
|
|
::pause
|
|
exit |