Is there any way to force a system to launch an app from a pendrive?
I need to write an app that will be launched after plugging in a pendrive without the user interference.
(The app will be on the pen drive.)
I know that Windows blocks the autorun.inf execution because of the security (I can't even add a position to the AutoPlay (?) menu, which would be enough for me). I have been reading that, in case of CDs, autorun.inf is launched, and pendrives with U3 system can emulate CDs, but I don't know what drive will be used. (In detail – I write a program that, after doing some operations on drive, is to be launched after plugging or even clicking a position in that dumb menu. And no, it's not related with viruses, data deletion or something like that.) I thought, that maybe there is any way to fit some little program or something in the NTFS, and force system to run it, but as I researched for the NTFS file system I found out that it's probably impossible.
I am looking for a solution that works on all computers
(i.e., not requiring a specific configuration)
running any version of Windows.
I am not as concerned about versions earlier than Windows Vista,
as those versions support autorun.inf
.
windows usb-flash-drive autorun
add a comment |
I need to write an app that will be launched after plugging in a pendrive without the user interference.
(The app will be on the pen drive.)
I know that Windows blocks the autorun.inf execution because of the security (I can't even add a position to the AutoPlay (?) menu, which would be enough for me). I have been reading that, in case of CDs, autorun.inf is launched, and pendrives with U3 system can emulate CDs, but I don't know what drive will be used. (In detail – I write a program that, after doing some operations on drive, is to be launched after plugging or even clicking a position in that dumb menu. And no, it's not related with viruses, data deletion or something like that.) I thought, that maybe there is any way to fit some little program or something in the NTFS, and force system to run it, but as I researched for the NTFS file system I found out that it's probably impossible.
I am looking for a solution that works on all computers
(i.e., not requiring a specific configuration)
running any version of Windows.
I am not as concerned about versions earlier than Windows Vista,
as those versions support autorun.inf
.
windows usb-flash-drive autorun
Are you trying to auto-launch a program on the pendrive, or the program is on the computer and the pendrive is just the trigger? Is this supposed to work on any computer or a specific one?
– fixer1234
Jan 29 at 23:51
If you’re specifically interested on one particular version of Windows, please say so. Please do not respond in comments; edit your question to make it clearer and more complete.
– Scott
Jan 30 at 0:10
@Scott corrected
– D. Zaradny
Jan 30 at 15:30
add a comment |
I need to write an app that will be launched after plugging in a pendrive without the user interference.
(The app will be on the pen drive.)
I know that Windows blocks the autorun.inf execution because of the security (I can't even add a position to the AutoPlay (?) menu, which would be enough for me). I have been reading that, in case of CDs, autorun.inf is launched, and pendrives with U3 system can emulate CDs, but I don't know what drive will be used. (In detail – I write a program that, after doing some operations on drive, is to be launched after plugging or even clicking a position in that dumb menu. And no, it's not related with viruses, data deletion or something like that.) I thought, that maybe there is any way to fit some little program or something in the NTFS, and force system to run it, but as I researched for the NTFS file system I found out that it's probably impossible.
I am looking for a solution that works on all computers
(i.e., not requiring a specific configuration)
running any version of Windows.
I am not as concerned about versions earlier than Windows Vista,
as those versions support autorun.inf
.
windows usb-flash-drive autorun
I need to write an app that will be launched after plugging in a pendrive without the user interference.
(The app will be on the pen drive.)
I know that Windows blocks the autorun.inf execution because of the security (I can't even add a position to the AutoPlay (?) menu, which would be enough for me). I have been reading that, in case of CDs, autorun.inf is launched, and pendrives with U3 system can emulate CDs, but I don't know what drive will be used. (In detail – I write a program that, after doing some operations on drive, is to be launched after plugging or even clicking a position in that dumb menu. And no, it's not related with viruses, data deletion or something like that.) I thought, that maybe there is any way to fit some little program or something in the NTFS, and force system to run it, but as I researched for the NTFS file system I found out that it's probably impossible.
I am looking for a solution that works on all computers
(i.e., not requiring a specific configuration)
running any version of Windows.
I am not as concerned about versions earlier than Windows Vista,
as those versions support autorun.inf
.
windows usb-flash-drive autorun
windows usb-flash-drive autorun
edited Jan 30 at 16:27
Scott
15.8k113990
15.8k113990
asked Jan 29 at 23:35
D. ZaradnyD. Zaradny
84
84
Are you trying to auto-launch a program on the pendrive, or the program is on the computer and the pendrive is just the trigger? Is this supposed to work on any computer or a specific one?
– fixer1234
Jan 29 at 23:51
If you’re specifically interested on one particular version of Windows, please say so. Please do not respond in comments; edit your question to make it clearer and more complete.
– Scott
Jan 30 at 0:10
@Scott corrected
– D. Zaradny
Jan 30 at 15:30
add a comment |
Are you trying to auto-launch a program on the pendrive, or the program is on the computer and the pendrive is just the trigger? Is this supposed to work on any computer or a specific one?
– fixer1234
Jan 29 at 23:51
If you’re specifically interested on one particular version of Windows, please say so. Please do not respond in comments; edit your question to make it clearer and more complete.
– Scott
Jan 30 at 0:10
@Scott corrected
– D. Zaradny
Jan 30 at 15:30
Are you trying to auto-launch a program on the pendrive, or the program is on the computer and the pendrive is just the trigger? Is this supposed to work on any computer or a specific one?
– fixer1234
Jan 29 at 23:51
Are you trying to auto-launch a program on the pendrive, or the program is on the computer and the pendrive is just the trigger? Is this supposed to work on any computer or a specific one?
– fixer1234
Jan 29 at 23:51
If you’re specifically interested on one particular version of Windows, please say so. Please do not respond in comments; edit your question to make it clearer and more complete.
– Scott
Jan 30 at 0:10
If you’re specifically interested on one particular version of Windows, please say so. Please do not respond in comments; edit your question to make it clearer and more complete.
– Scott
Jan 30 at 0:10
@Scott corrected
– D. Zaradny
Jan 30 at 15:30
@Scott corrected
– D. Zaradny
Jan 30 at 15:30
add a comment |
1 Answer
1
active
oldest
votes
No, there is not. AutoRun was the only method of instructing a Windows computer to load software when any type of digital media was inserted, and correctly, due to very real security concerns, this was modified and disabled. The OS will read the disc and offer the user some options for viewing the content safely.
If there was a work around, you that virus and malware makers would be the first people to make use of that, so there is no workaround.
If you are on a managed domain you could write a task or script that checked for certain criteria and then ran a file, and because it was initiated by a trusted part of the system (the Task Scheduler, for instance) that should work. But without a method of getting such a policy and configuration to the computers, you are out of luck.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399879%2fis-there-any-way-to-force-a-system-to-launch-an-app-from-a-pendrive%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
No, there is not. AutoRun was the only method of instructing a Windows computer to load software when any type of digital media was inserted, and correctly, due to very real security concerns, this was modified and disabled. The OS will read the disc and offer the user some options for viewing the content safely.
If there was a work around, you that virus and malware makers would be the first people to make use of that, so there is no workaround.
If you are on a managed domain you could write a task or script that checked for certain criteria and then ran a file, and because it was initiated by a trusted part of the system (the Task Scheduler, for instance) that should work. But without a method of getting such a policy and configuration to the computers, you are out of luck.
add a comment |
No, there is not. AutoRun was the only method of instructing a Windows computer to load software when any type of digital media was inserted, and correctly, due to very real security concerns, this was modified and disabled. The OS will read the disc and offer the user some options for viewing the content safely.
If there was a work around, you that virus and malware makers would be the first people to make use of that, so there is no workaround.
If you are on a managed domain you could write a task or script that checked for certain criteria and then ran a file, and because it was initiated by a trusted part of the system (the Task Scheduler, for instance) that should work. But without a method of getting such a policy and configuration to the computers, you are out of luck.
add a comment |
No, there is not. AutoRun was the only method of instructing a Windows computer to load software when any type of digital media was inserted, and correctly, due to very real security concerns, this was modified and disabled. The OS will read the disc and offer the user some options for viewing the content safely.
If there was a work around, you that virus and malware makers would be the first people to make use of that, so there is no workaround.
If you are on a managed domain you could write a task or script that checked for certain criteria and then ran a file, and because it was initiated by a trusted part of the system (the Task Scheduler, for instance) that should work. But without a method of getting such a policy and configuration to the computers, you are out of luck.
No, there is not. AutoRun was the only method of instructing a Windows computer to load software when any type of digital media was inserted, and correctly, due to very real security concerns, this was modified and disabled. The OS will read the disc and offer the user some options for viewing the content safely.
If there was a work around, you that virus and malware makers would be the first people to make use of that, so there is no workaround.
If you are on a managed domain you could write a task or script that checked for certain criteria and then ran a file, and because it was initiated by a trusted part of the system (the Task Scheduler, for instance) that should work. But without a method of getting such a policy and configuration to the computers, you are out of luck.
answered Jan 30 at 18:22
music2myearmusic2myear
31.2k858100
31.2k858100
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399879%2fis-there-any-way-to-force-a-system-to-launch-an-app-from-a-pendrive%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you trying to auto-launch a program on the pendrive, or the program is on the computer and the pendrive is just the trigger? Is this supposed to work on any computer or a specific one?
– fixer1234
Jan 29 at 23:51
If you’re specifically interested on one particular version of Windows, please say so. Please do not respond in comments; edit your question to make it clearer and more complete.
– Scott
Jan 30 at 0:10
@Scott corrected
– D. Zaradny
Jan 30 at 15:30