Package Move / CMD does not work with folders

I have a simple .bat file (move.bat) in the SendTo folder that moves files and directories from anywhere to the specified folder using the context menu. This worked on XP. However, in Windows 7, I get denied access to access. It does not even work with cmd open as admin (runas).

contents of move.bat:

move %1 c:\specifiedfolder
+3
source share
4 answers

Try to enter the administrator using takeown /F <filename>(for files) and
takeown /f <foldername> /r /d y(for folders), and then try moving the file or folder

after accepting the right to access the admin file for full control using the cacls utility

cacls <folder> /T  /G admin:F
+1
source

Windows 7 . , homedir script, coz , , admin..

, cmd- , ...

: xcopy /R, ... robocopy

robocopy %1 c:\specifiedfolder /E /IS /MOVE

...

+1

, .

, Windows 7 Windows . , , , .

, , . EVEN, , ( ) , , , , , ..

, , - .

0

, - .

,
0

Source: https://habr.com/ru/post/1727046/


All Articles