I suppose it's a windows cmd command or maybe it's a system call. I'm searching for the command that allows to cancel the movement/copy on a file (what happens if you press the cancel button on the windows dialog box while copying/moving that file).
<don't do this!>
Unless you know the PID that does the copy, and kill that, leaving the partly copied file in a quite undetermined state :-(
</don't do this!>
Not from a commandline, run an AutoIt or AHK script to press that button.
But why would you want to cancel, if you are running a copy from some batch process? And that shouldn't be displaying a progress-windows in the first place.
This sounds more and more like a school assignment of some sort, not a real-life situation.
I'm describing you what my problem is, so you see why I needed that cancel button and maybe if you can find a better way to do it, (I think I have found a good way to do this anyway)
We have a shared disk with data on a intranet that is accesed by a lot of people so we'd like to limit the maximum amount every principal directory on the disk can have.
It's not hard to see if the directory has reached the maximum allowed amount of data, but the problem is if that happens during a transference of data, so I had thought about canceling the transference so the maximum amount of data is not bypassed and the user still mantains whatever was copied first.
Anyway I've tested that you can change the permissions in a directory when a data transference is happening, so I will investigate it this way.
Can you help me with the issue of changing directory permissions programtically, anyway?
Restricting the amount of data to be stored on a shared volume is usually configured using the AD properties (or policies) of that volume. Assuming you have a Windows Server based network, where an Active Directory server is controlling the user logins and directory access, that is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.