How to execute the batch file? On double click it do not execute but creates two unknown file
When i double click any .bat file it does not execute anymore (none of .bat file is executable anymore). I tried all the SO/SU answers with regedit but none of them fixed it yet.
my bat file contain as following.
@start /b cmd /c "C:Program Files (x86)GoogleChromeApplicationchrome.exe" --kiosk --user-data-dir=C:iplay --disable-pinch --force-renderer-accessibility --autoplay-policy=no-user-gesture-required
Can anyone please help?
EDIT: i also verified as following
HKEY_CLASSES_ROOT.bat should have a default value of batfile
HKEY_CLASSES_ROOTbatfileshellopencommand should have a default value of "%1" %* Also you should *not* see a key named UserChoice under
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.bat
windows command-line google-chrome batch batch-file
|
show 5 more comments
When i double click any .bat file it does not execute anymore (none of .bat file is executable anymore). I tried all the SO/SU answers with regedit but none of them fixed it yet.
my bat file contain as following.
@start /b cmd /c "C:Program Files (x86)GoogleChromeApplicationchrome.exe" --kiosk --user-data-dir=C:iplay --disable-pinch --force-renderer-accessibility --autoplay-policy=no-user-gesture-required
Can anyone please help?
EDIT: i also verified as following
HKEY_CLASSES_ROOT.bat should have a default value of batfile
HKEY_CLASSES_ROOTbatfileshellopencommand should have a default value of "%1" %* Also you should *not* see a key named UserChoice under
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.bat
windows command-line google-chrome batch batch-file
2
Then you've missed the point that start uses the first double quoted string as the windows title, avoided by inserting a dummy empty pairstart "" ...
– LotPings
Jan 17 at 13:58
1
Is this happening to all bat files, or only this one? If it is happening only with this one, it is just a code problem - fix your bat and it will be ok. To help track errors on bat files, you can run it from inside cmd prompt - there you will probably see the error message...
– Leonardo Alves Machado
Jan 17 at 14:04
Add the word Pause to the last line of the bat. Now the window will stay open after the cmd is done, then you can read any errors mentioned by Leonardo.
– Moab
Jan 17 at 14:09
It is happening to ALL Bat file. I also checkedHKEY_CLASSES_ROOT.bat should have a default value of batfile HKEY_CLASSES_ROOTbatfileshellopencommand should have a default value of "%1" %* Also you should *not* see a key named UserChoice under HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.batbut still same all .bat files are not executable.
– YumYumYum
Jan 17 at 16:48
i added pause. But .bat file even do not execute at all from command prompt nor by double clicking.
– YumYumYum
Jan 17 at 16:48
|
show 5 more comments
When i double click any .bat file it does not execute anymore (none of .bat file is executable anymore). I tried all the SO/SU answers with regedit but none of them fixed it yet.
my bat file contain as following.
@start /b cmd /c "C:Program Files (x86)GoogleChromeApplicationchrome.exe" --kiosk --user-data-dir=C:iplay --disable-pinch --force-renderer-accessibility --autoplay-policy=no-user-gesture-required
Can anyone please help?
EDIT: i also verified as following
HKEY_CLASSES_ROOT.bat should have a default value of batfile
HKEY_CLASSES_ROOTbatfileshellopencommand should have a default value of "%1" %* Also you should *not* see a key named UserChoice under
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.bat
windows command-line google-chrome batch batch-file
When i double click any .bat file it does not execute anymore (none of .bat file is executable anymore). I tried all the SO/SU answers with regedit but none of them fixed it yet.
my bat file contain as following.
@start /b cmd /c "C:Program Files (x86)GoogleChromeApplicationchrome.exe" --kiosk --user-data-dir=C:iplay --disable-pinch --force-renderer-accessibility --autoplay-policy=no-user-gesture-required
Can anyone please help?
EDIT: i also verified as following
HKEY_CLASSES_ROOT.bat should have a default value of batfile
HKEY_CLASSES_ROOTbatfileshellopencommand should have a default value of "%1" %* Also you should *not* see a key named UserChoice under
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.bat
windows command-line google-chrome batch batch-file
windows command-line google-chrome batch batch-file
edited Jan 18 at 6:28
YumYumYum
asked Jan 17 at 12:16
YumYumYumYumYumYum
79452962
79452962
2
Then you've missed the point that start uses the first double quoted string as the windows title, avoided by inserting a dummy empty pairstart "" ...
– LotPings
Jan 17 at 13:58
1
Is this happening to all bat files, or only this one? If it is happening only with this one, it is just a code problem - fix your bat and it will be ok. To help track errors on bat files, you can run it from inside cmd prompt - there you will probably see the error message...
– Leonardo Alves Machado
Jan 17 at 14:04
Add the word Pause to the last line of the bat. Now the window will stay open after the cmd is done, then you can read any errors mentioned by Leonardo.
– Moab
Jan 17 at 14:09
It is happening to ALL Bat file. I also checkedHKEY_CLASSES_ROOT.bat should have a default value of batfile HKEY_CLASSES_ROOTbatfileshellopencommand should have a default value of "%1" %* Also you should *not* see a key named UserChoice under HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.batbut still same all .bat files are not executable.
– YumYumYum
Jan 17 at 16:48
i added pause. But .bat file even do not execute at all from command prompt nor by double clicking.
– YumYumYum
Jan 17 at 16:48
|
show 5 more comments
2
Then you've missed the point that start uses the first double quoted string as the windows title, avoided by inserting a dummy empty pairstart "" ...
– LotPings
Jan 17 at 13:58
1
Is this happening to all bat files, or only this one? If it is happening only with this one, it is just a code problem - fix your bat and it will be ok. To help track errors on bat files, you can run it from inside cmd prompt - there you will probably see the error message...
– Leonardo Alves Machado
Jan 17 at 14:04
Add the word Pause to the last line of the bat. Now the window will stay open after the cmd is done, then you can read any errors mentioned by Leonardo.
– Moab
Jan 17 at 14:09
It is happening to ALL Bat file. I also checkedHKEY_CLASSES_ROOT.bat should have a default value of batfile HKEY_CLASSES_ROOTbatfileshellopencommand should have a default value of "%1" %* Also you should *not* see a key named UserChoice under HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.batbut still same all .bat files are not executable.
– YumYumYum
Jan 17 at 16:48
i added pause. But .bat file even do not execute at all from command prompt nor by double clicking.
– YumYumYum
Jan 17 at 16:48
2
2
Then you've missed the point that start uses the first double quoted string as the windows title, avoided by inserting a dummy empty pair
start "" ...– LotPings
Jan 17 at 13:58
Then you've missed the point that start uses the first double quoted string as the windows title, avoided by inserting a dummy empty pair
start "" ...– LotPings
Jan 17 at 13:58
1
1
Is this happening to all bat files, or only this one? If it is happening only with this one, it is just a code problem - fix your bat and it will be ok. To help track errors on bat files, you can run it from inside cmd prompt - there you will probably see the error message...
– Leonardo Alves Machado
Jan 17 at 14:04
Is this happening to all bat files, or only this one? If it is happening only with this one, it is just a code problem - fix your bat and it will be ok. To help track errors on bat files, you can run it from inside cmd prompt - there you will probably see the error message...
– Leonardo Alves Machado
Jan 17 at 14:04
Add the word Pause to the last line of the bat. Now the window will stay open after the cmd is done, then you can read any errors mentioned by Leonardo.
– Moab
Jan 17 at 14:09
Add the word Pause to the last line of the bat. Now the window will stay open after the cmd is done, then you can read any errors mentioned by Leonardo.
– Moab
Jan 17 at 14:09
It is happening to ALL Bat file. I also checked
HKEY_CLASSES_ROOT.bat should have a default value of batfile HKEY_CLASSES_ROOTbatfileshellopencommand should have a default value of "%1" %* Also you should *not* see a key named UserChoice under HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.bat but still same all .bat files are not executable.– YumYumYum
Jan 17 at 16:48
It is happening to ALL Bat file. I also checked
HKEY_CLASSES_ROOT.bat should have a default value of batfile HKEY_CLASSES_ROOTbatfileshellopencommand should have a default value of "%1" %* Also you should *not* see a key named UserChoice under HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.bat but still same all .bat files are not executable.– YumYumYum
Jan 17 at 16:48
i added pause. But .bat file even do not execute at all from command prompt nor by double clicking.
– YumYumYum
Jan 17 at 16:48
i added pause. But .bat file even do not execute at all from command prompt nor by double clicking.
– YumYumYum
Jan 17 at 16:48
|
show 5 more comments
0
active
oldest
votes
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%2f1395353%2fhow-to-execute-the-batch-file-on-double-click-it-do-not-execute-but-creates-two%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f1395353%2fhow-to-execute-the-batch-file-on-double-click-it-do-not-execute-but-creates-two%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
2
Then you've missed the point that start uses the first double quoted string as the windows title, avoided by inserting a dummy empty pair
start "" ...– LotPings
Jan 17 at 13:58
1
Is this happening to all bat files, or only this one? If it is happening only with this one, it is just a code problem - fix your bat and it will be ok. To help track errors on bat files, you can run it from inside cmd prompt - there you will probably see the error message...
– Leonardo Alves Machado
Jan 17 at 14:04
Add the word Pause to the last line of the bat. Now the window will stay open after the cmd is done, then you can read any errors mentioned by Leonardo.
– Moab
Jan 17 at 14:09
It is happening to ALL Bat file. I also checked
HKEY_CLASSES_ROOT.bat should have a default value of batfile HKEY_CLASSES_ROOTbatfileshellopencommand should have a default value of "%1" %* Also you should *not* see a key named UserChoice under HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.batbut still same all .bat files are not executable.– YumYumYum
Jan 17 at 16:48
i added pause. But .bat file even do not execute at all from command prompt nor by double clicking.
– YumYumYum
Jan 17 at 16:48