Can a file copy be detected on windows?
up vote
-1
down vote
favorite
I want to trigger a piece of code to run as soon as a 'copy' command is executed on Windows. Let's say I want to perform some operations as soon as the user tries to copy a file. Is there any way to detect the 'copy' operation on Windows?
windows operating-system copy
add a comment |
up vote
-1
down vote
favorite
I want to trigger a piece of code to run as soon as a 'copy' command is executed on Windows. Let's say I want to perform some operations as soon as the user tries to copy a file. Is there any way to detect the 'copy' operation on Windows?
windows operating-system copy
Copying is not an atomic operation that can be identified and monitored at the file-system level. It's simply reading the file data and some or all metadata.
– eryksun
2 days ago
Yes, this is possible. That's what anti-malware software does. What is your question?
– IInspectable
2 days ago
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I want to trigger a piece of code to run as soon as a 'copy' command is executed on Windows. Let's say I want to perform some operations as soon as the user tries to copy a file. Is there any way to detect the 'copy' operation on Windows?
windows operating-system copy
I want to trigger a piece of code to run as soon as a 'copy' command is executed on Windows. Let's say I want to perform some operations as soon as the user tries to copy a file. Is there any way to detect the 'copy' operation on Windows?
windows operating-system copy
windows operating-system copy
asked 2 days ago
V.I.L
43
43
Copying is not an atomic operation that can be identified and monitored at the file-system level. It's simply reading the file data and some or all metadata.
– eryksun
2 days ago
Yes, this is possible. That's what anti-malware software does. What is your question?
– IInspectable
2 days ago
add a comment |
Copying is not an atomic operation that can be identified and monitored at the file-system level. It's simply reading the file data and some or all metadata.
– eryksun
2 days ago
Yes, this is possible. That's what anti-malware software does. What is your question?
– IInspectable
2 days ago
Copying is not an atomic operation that can be identified and monitored at the file-system level. It's simply reading the file data and some or all metadata.
– eryksun
2 days ago
Copying is not an atomic operation that can be identified and monitored at the file-system level. It's simply reading the file data and some or all metadata.
– eryksun
2 days ago
Yes, this is possible. That's what anti-malware software does. What is your question?
– IInspectable
2 days ago
Yes, this is possible. That's what anti-malware software does. What is your question?
– IInspectable
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
You may monitor the clipboard (see Creating a Clipboard Format Listener) and check if there is an object with format CF_HDROP in it. But it will not tell you when the clipboard paste operation actually started.
This also will not cover copying which does not involve clipboard, like direct file_read/file_write loop in a File Manager application. For this you may monitor changes in the file system (see How can I monitor a Windows directory for changes?) but it will not tell you where was the file copied from, just where was it pasted to.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You may monitor the clipboard (see Creating a Clipboard Format Listener) and check if there is an object with format CF_HDROP in it. But it will not tell you when the clipboard paste operation actually started.
This also will not cover copying which does not involve clipboard, like direct file_read/file_write loop in a File Manager application. For this you may monitor changes in the file system (see How can I monitor a Windows directory for changes?) but it will not tell you where was the file copied from, just where was it pasted to.
add a comment |
up vote
0
down vote
You may monitor the clipboard (see Creating a Clipboard Format Listener) and check if there is an object with format CF_HDROP in it. But it will not tell you when the clipboard paste operation actually started.
This also will not cover copying which does not involve clipboard, like direct file_read/file_write loop in a File Manager application. For this you may monitor changes in the file system (see How can I monitor a Windows directory for changes?) but it will not tell you where was the file copied from, just where was it pasted to.
add a comment |
up vote
0
down vote
up vote
0
down vote
You may monitor the clipboard (see Creating a Clipboard Format Listener) and check if there is an object with format CF_HDROP in it. But it will not tell you when the clipboard paste operation actually started.
This also will not cover copying which does not involve clipboard, like direct file_read/file_write loop in a File Manager application. For this you may monitor changes in the file system (see How can I monitor a Windows directory for changes?) but it will not tell you where was the file copied from, just where was it pasted to.
You may monitor the clipboard (see Creating a Clipboard Format Listener) and check if there is an object with format CF_HDROP in it. But it will not tell you when the clipboard paste operation actually started.
This also will not cover copying which does not involve clipboard, like direct file_read/file_write loop in a File Manager application. For this you may monitor changes in the file system (see How can I monitor a Windows directory for changes?) but it will not tell you where was the file copied from, just where was it pasted to.
answered 2 days ago
xmojmr
7,00842239
7,00842239
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53203843%2fcan-a-file-copy-be-detected-on-windows%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Copying is not an atomic operation that can be identified and monitored at the file-system level. It's simply reading the file data and some or all metadata.
– eryksun
2 days ago
Yes, this is possible. That's what anti-malware software does. What is your question?
– IInspectable
2 days ago