P
P
pro100evil6662017-10-18 11:59:45
cmd/bat
pro100evil666, 2017-10-18 11:59:45

Moving files from one folder to another via .bat?

on disk D: two folders 1 and 2,
the script lies in the root of disk D
, you need to move files from 1 to 2 in order to delete the old file from folder 2
, before that, there should be a check if there is a file in folder 1, then copy, if not, then do not copy.
Help me realize I'm not strong in this
PS If possible, paint what? where? and why?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
res2001, 2017-10-18
@res2001

copy /yd:\1\* d:\2

P
pro100evil666, 2017-10-18
@pro100evil666

you need to move files from 1 to 2 so that the old file is deleted from folder 2
before that there should be a check if there is a file in folder 1 then move it, if not then the script should not do anything.

O
Olgeir, 2017-10-18
@Olgeir

move /yd:\1\* d:\2
but you somehow decide whether you need to move or copy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question