View Issue Details

IDProjectCategoryView StatusLast Update
0007444Windows and other desktop OSServerpublic2024-07-08 17:53
ReporterDigitalMy 
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Summary0007444: Scripts for video archive processing
DescriptionArrange files saved to network share by IP camera firmware default

D-Link DCS in most cases
TagsNo tags attached.
FinishDate
StartDate
WasteTime0
PriorityIndex1
LaboriousnessIndex1

Activities

DigitalMy

2024-07-04 17:39

administrator   ~0014286

Last edited: 2024-07-08 17:53

View 2 revisions

[code]
@echo off
setlocal enabledelayedexpansion
SET root=S:\motionFolder
cd !root!
FOR %%V IN (!root!\*.*) DO (
SET filedate=%%~tV
rem now echo !filedate!
SET fileyear=!filedate:0000012:0000006,4!
SET filemonth=!filedate:0000008:0000003,2!
SET fileday=!filedate:~0,2!
rem echo !fileyear! !filemonth! !fileday!
mkdir !root!\!fileyear! 2>nul
mkdir !root!\!fileyear!\!filemonth! 2>nul
mkdir !root!\!fileyear!\!filemonth!\!fileday! 2>nul
echo move %%V to !root!\!fileyear!\!filemonth!\!fileday!\
move %%V !root!\!fileyear!\!filemonth!\!fileday!\ >nul
)
[/code]

DigitalMy

2024-07-04 17:42

administrator   ~0014287

Last edited: 2024-07-04 17:46

View 2 revisions

setlocal enabledelayedexpansion
SET root=S:\motionFolder
cd !root!
del !root!\*.log /s