F
F
Farhad Ibragimov2016-12-02 13:54:06
cmd/bat
Farhad Ibragimov, 2016-12-02 13:54:06

How to transfer files by bat file?

There is a folder in which files are stored, you need to transfer them to the server in a folder with the current name usernam. The problem is that the Folder is created but the transfer fails, an error is generated: It is not possible to transfer several files into one file. Where is the script error please tell me I'm not experienced in writing these scripts
@echo off
chcp 866 >nul
set time=10
:loop
md \\192.168.0.21\c$\srin\%username%
Move /y C:\Skripts\*. * \\192.168.0.21\C$\scrin\"%username%"
ping 127.0.0.1 -n %time% >nul
Goto :loop
pause

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2016-12-02
@res2001

Move /y C:\Scripts\*.* "\\192.168.0.21\C$\scrin\%username%\"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question