Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching for a certain windows cmd command

Status
Not open for further replies.

kyru

Programmer
Jan 17, 2009
45
ES
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).

Greetings.

 
There isn't.




<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!>
 
I don't know what you're trying to do, but maybe a solution would be programmatically clicking the Cancel button as shown here

Cheers,
Dian
 
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.
 
Thanks a lot for your answers.

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?

Thank you a lot.
 
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...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top