Project

General

Profile

Передача МБД через ДДБ » movefiles.bat

Alexey Golovnya, 28/12/2012 10:24

 
@echo off

set connection=forcopy
set src=Server1\djinroot\snd
set dst=\\Server2\djinroot\snd

for %%f in ("%dst%\COMM\%connection%\%src%\COMM\*") do (
move "%%f" "%dst%\COMM\"
)

for %%f in ("%dst%\JNGL\%connection%\%src%\JNGL\*") do (
move "%%f" "%dst%\JNGL\"
)

for %%f in ("%dst%\MUSIC\%connection%\%src%\MUSIC\*") do (
move "%%f" "%dst%\MUSIC\"
)

for %%f in ("%dst%\BCST\%connection%\%src%\BCST\*") do (
move "%%f" "%dst%\BCST\"
)

for %%f in ("%dst%\NEWS\%connection%\%src%\NEWS\*") do (
move "%%f" "%dst%\NEWS\"
)

mkdir "%dst%\ARC\COMM\"
mkdir "%dst%\ARC\JNGL\"
mkdir "%dst%\ARC\MUSIC\"
mkdir "%dst%\ARC\BCST\"
mkdir "%dst%\ARC\NEWS\"

for %%f in ("%dst%\COMM\%connection%\%src%\ARC\COMM\*") do (
move "%%f" "%dst%\ARC\COMM\"
)

for %%f in ("%dst%\JNGL\%connection%\%src%\ARC\JNGL\*") do (
move "%%f" "%dst%\ARC\JNGL\"
)

for %%f in ("%dst%\MUSIC\%connection%\%src%\ARC\MUSIC\*") do (
move "%%f" "%dst%\ARC\MUSIC\"
)

for %%f in ("%dst%\BCST\%connection%\%src%\ARC\BCST\*") do (
move "%%f" "%dst%\ARC\BCST\"
)

for %%f in ("%dst%\NEWS\%connection%\%src%\ARC\NEWS\*") do (
move "%%f" "%dst%\ARC\NEWS\"
)
(2-2/2)
Add picture from clipboard (Maximum size: 742 MB)