Answer the question
In order to leave comments, you need to log in
Robocopy (Permission denied) How and why?
Hello! I can't figure out what could be wrong. I'm trying to make a backup over the network, but I get an error constantly denied access. At the same time, the permission for the folder for Everyone + anonymous access is generally shared to the fullest, if you just go through the explorer, you can create everything, delete it, etc. but robocopy does not get access, at the same time it turned on the audit on the folder and there all the audit is successful, it gets access to the folder.
C:\Users\sa>robocopy.exe C:\ \\t2000\usersbackup
robocopy.exe C:\ \\t2000\usersbackup
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Начало: 29 апреля 2019 г. 11:50:37
2019/04/29 11:50:37 ОШИБКА 5 (0x00000005) Получение типа файловой системы назнач
ения \\t2000\usersbackup\
Отказано в доступе.
Источник : C:\
Назначение - \\t2000\usersbackup\
Файлы: *.*
Параметры: *.* /DCOPY:DA /COPY:DAT /R:1000000 /W:30
-----------------------------------------------------------------------------
2019/04/29 11:50:37 ОШИБКА 5 (0x00000005) Создание папки назначения \\t2000\user
sbackup\
Отказано в доступе.
WorkFlow CopyFromRemote
{
param([string[]]$computers,$ext,[int]$ThrottleLimit = 5)
foreach -Parallel -ThrottleLimit $ThrottleLimit ($computer in $computers) {
robocopy \\$computer\C$\users\test\ E:\"Резервные копии пользователей"\$computer $ext /XJD /XD AppData /XA:SH /S /W:0 /R:0 /MOT:1
}
}
$extensions= Get-Content -Path 'C:\script\r.txt'
$extensions=$extensions.Split(',')
# $date=Get-Date -format 'dd.MM.yyyy-(hh-mm-ss)'
$computers = Get-Content -Path 'C:\script\test.txt'
CopyFromRemote $computers $extensions
Answer the question
In order to leave comments, you need to log in
basically i sketched a primitive version https://jsbin.com/jijipezezo/edit?html,js,output
for the lazy at the bottom
<body>
<form role="form">
<div class="form-group " id="box">
<label class="control-label" id="label" for="input"></label>
<input type="text" class="form-control" id="input">
</div>
</form>
</body>
const input = document.getElementById('input');
const box = document.getElementById('box');
const label = document.getElementById('label');
const re = /^[0-9]{0,4}$/;
input.addEventListener('input', validate);
function validate(e) {
const value = e.target.value.trim();
console.log(value);
if(!value) {
label.textContent = '';
box.className = "form-group";
return;
}
if(re.test(value)) {
box.className = "form-group has-success";
label.textContent = "Well, it's ok for now!";
} else {
box.className = "form-group has-warning";
label.textContent = "Oh dude, totally weak!";
}
}
It would be more correct to create two css classes - .fail-input and .success-input, and use js to apply one of these classes to our field for a while. Classes, respectively, have border-color: color.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question