Open a .bat file
Pedrolabulle
-
SROW -
SROW -
Hello,
I can't open a .bat file; which program should I use?
I tried using the command prompt, but the result isn't promising, maybe because it is "stuck" at c:\documents and settings\owner> (meaning I can't enter the correct path).
Thank you very much in advance for your help :-)
I can't open a .bat file; which program should I use?
I tried using the command prompt, but the result isn't promising, maybe because it is "stuck" at c:\documents and settings\owner> (meaning I can't enter the correct path).
Thank you very much in advance for your help :-)
Configuration: Windows XP Internet Explorer 7.0
12 réponses
Who programmed your batch? Maybe there's just a small mistake at the beginning and it closes right away! No?
Uh... up? Sorry, my problem might seem silly, but I really need a hand!
Of course, I'm available for any rephrasing in case I wasn't clear.
Thanks again!
Of course, I'm available for any rephrasing in case I wasn't clear.
Thanks again!
Hello,
I have the same problem as you:
I have only tried it on Windows 7, but it should work.
Instead of saving as .bat, save as .cmd
If you wanted to share something, I recommend
saving as both .bat and .cmd
There you go, I hope it works for you
@ +
I have the same problem as you:
I have only tried it on Windows 7, but it should work.
Instead of saving as .bat, save as .cmd
If you wanted to share something, I recommend
saving as both .bat and .cmd
There you go, I hope it works for you
@ +
Hello
in principle, to execute a .bat file, you just need to double-click on it.
if that doesn't work, it means that the commands in your file contain errors. So you need to edit it to check.
so right-click and modify (with Notepad)
or rename it with the extension ".txt" to open it with Notepad.
--
Keep us updated Best regards
in principle, to execute a .bat file, you just need to double-click on it.
if that doesn't work, it means that the commands in your file contain errors. So you need to edit it to check.
so right-click and modify (with Notepad)
or rename it with the extension ".txt" to open it with Notepad.
--
Keep us updated Best regards
Hi,
by double clicking on it, I get the now classic "Windows cannot open this file."
Apparently, it doesn’t contain any errors, but I’ll leave it to your judgment as I don’t know much about it.
@echo off
cls
attrib -r -s -h *.* /s
mythxuha.exe x -d1 -o+ -y+ -vm+ bar.uha
mythxuha.exe x -d1 -o+ -y+ -vm+ models.uha
del tga.uha
del models.uha
del mythxuha.exe
mythxpak.exe myth.pak
cd sound
..\replwavs sounds.bar
move aherohasfallen.wav .\ui\
del *.wav
move .\ui\aherohasfallen.wav .\
cd ..
del replwavs.exe
del myth.pak
setupreg.exe
echo ---------------------------------------------------------------------------
echo OK, all done.
echo ---------------------------------------------------------------------------
by double clicking on it, I get the now classic "Windows cannot open this file."
Apparently, it doesn’t contain any errors, but I’ll leave it to your judgment as I don’t know much about it.
@echo off
cls
attrib -r -s -h *.* /s
mythxuha.exe x -d1 -o+ -y+ -vm+ bar.uha
mythxuha.exe x -d1 -o+ -y+ -vm+ models.uha
del tga.uha
del models.uha
del mythxuha.exe
mythxpak.exe myth.pak
cd sound
..\replwavs sounds.bar
move aherohasfallen.wav .\ui\
del *.wav
move .\ui\aherohasfallen.wav .\
cd ..
del replwavs.exe
del myth.pak
setupreg.exe
echo ---------------------------------------------------------------------------
echo OK, all done.
echo ---------------------------------------------------------------------------
Hello Pedrolabulle,
BAT file that won't launch anymore:
http://forum.pcastuces.com/sujet.asp?f=1&s=163200
Check the versions of Windows (in case they differ too much and it doesn’t work) ...
- on the desktop, right-click / new / text document
- confirm by pressing enter
- double-click on this file
- Format menu: check that "Word wrap" is unchecked
- copy the following (without a blank line before Windows Registry Editor Version 5.00)
- File menu / Save as / where you want
- in the "File name" box, name this file "SavBat.reg" (with quotes)
- in the "Type" box, select "All files (*.*)"
- select "UNICODE"
- click on "Save"
- double-click this reg file and confirm the merge into the registry
- it is preferable to restart the computer
thank you
BAT file that won't launch anymore:
http://forum.pcastuces.com/sujet.asp?f=1&s=163200
Check the versions of Windows (in case they differ too much and it doesn’t work) ...
- on the desktop, right-click / new / text document
- confirm by pressing enter
- double-click on this file
- Format menu: check that "Word wrap" is unchecked
- copy the following (without a blank line before Windows Registry Editor Version 5.00)
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.bat] @="batfile" [HKEY_CLASSES_ROOT\.bat\PersistentHandler] @="{5e941d80-bf96-11cd-b579-08002b30bfeb}" [HKEY_CLASSES_ROOT\batfile] @="MS-DOS Batch File" "EditFlags"=hex:30,04,00,00 [HKEY_CLASSES_ROOT\batfile\DefaultIcon] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\ 65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,35,\ 00,33,00,00,00 [HKEY_CLASSES_ROOT\batfile\shell] [HKEY_CLASSES_ROOT\batfile\shell\edit] [HKEY_CLASSES_ROOT\batfile\shell\edit\command] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\ 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\ 00 [HKEY_CLASSES_ROOT\batfile\shell\open] "EditFlags"=hex:00,00,00,00 [HKEY_CLASSES_ROOT\batfile\shell\open\command] @="\"%1\" %*" [HKEY_CLASSES_ROOT\batfile\shell\print] [HKEY_CLASSES_ROOT\batfile\shell\print\command] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\ 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\ 00,25,00,31,00,00,00 [HKEY_CLASSES_ROOT\batfile\shellex] [HKEY_CLASSES_ROOT\batfile\shellex\DropHandler] @="{86C86720-42A0-1069-A2E8-08002B30309D}" [HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers] [HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\PifProps] @="{86F19A00-42A0-1069-A2E9-08002B30309D}" [HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\ShimLayer Property Page] @="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}" - File menu / Save as / where you want
- in the "File name" box, name this file "SavBat.reg" (with quotes)
- in the "Type" box, select "All files (*.*)"
- select "UNICODE"
- click on "Save"
- double-click this reg file and confirm the merge into the registry
- it is preferable to restart the computer
thank you
it's worthless
I suggest you put this:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.bat]
@="batfile"
[HKEY_CLASSES_ROOT\.bat\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\batfile]
@="MS-DOS Batch File"
"EditFlags"=hex:30,04,00,00
[HKEY_CLASSES_ROOT\batfile\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\
65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,35,\
00,33,00,00,00
[HKEY_CLASSES_ROOT\batfile\shell]
[HKEY_CLASSES_ROOT\batfile\shell\edit]
[HKEY_CLASSES_ROOT\batfile\shell\edit\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
00
[HKEY_CLASSES_ROOT\batfile\shell\open]
"EditFlags"=hex:00,00,00,00
[HKEY_CLASSES_ROOT\batfile\shell\open\command]
@="\"%1\" %*"
[HKEY_CLASSES_ROOT\batfile\shell\print]
[HKEY_CLASSES_ROOT\batfile\shell\print\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\
00,25,00,31,00,00,00
[HKEY_CLASSES_ROOT\batfile\shellex]
[HKEY_CLASSES_ROOT\batfile\shellex\DropHandler]
@="{86C86720-42A0-1069-A2E8-08002B30309D}"
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\PifProps]
@="{86F19A00-42A0-1069-A2E9-08002B30309D}"
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
I suggest you put this:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.bat]
@="batfile"
[HKEY_CLASSES_ROOT\.bat\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\batfile]
@="MS-DOS Batch File"
"EditFlags"=hex:30,04,00,00
[HKEY_CLASSES_ROOT\batfile\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\
65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,35,\
00,33,00,00,00
[HKEY_CLASSES_ROOT\batfile\shell]
[HKEY_CLASSES_ROOT\batfile\shell\edit]
[HKEY_CLASSES_ROOT\batfile\shell\edit\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
00
[HKEY_CLASSES_ROOT\batfile\shell\open]
"EditFlags"=hex:00,00,00,00
[HKEY_CLASSES_ROOT\batfile\shell\open\command]
@="\"%1\" %*"
[HKEY_CLASSES_ROOT\batfile\shell\print]
[HKEY_CLASSES_ROOT\batfile\shell\print\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\
00,25,00,31,00,00,00
[HKEY_CLASSES_ROOT\batfile\shellex]
[HKEY_CLASSES_ROOT\batfile\shellex\DropHandler]
@="{86C86720-42A0-1069-A2E8-08002B30309D}"
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\PifProps]
@="{86F19A00-42A0-1069-A2E9-08002B30309D}"
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
et me Ouvrir un fichier .bat
Pedrolabulle - Last response on May 29, 2013 at 09:31
Hello,
I can't open a .bat file; what program should I use?
I tried with the command prompt, the result is not conclusive, maybe because it is "stuck" on c:\documents and settings\owner> (that is to say, I cannot type the correct path).
Thank you very much in advance for your help :-)
Ouvrir un fichier .bat
Run .bat file
Download a program to read a bat file
Open a .bat file (Resolved) » Forum - Programming
Create batch command files » Practical tips - MS-Dos
Execute a .bat file (Resolved) » Forum - Windows
How to read .bat files on mac? (Resolved) » Forum - MacOS
How to run a .BAT file at startup?? » Forum - Windows
More
Find nearly 30,000 job offers for all professions, all sectors, and all regions, with Keljob.
Response
+11
less more
dryden972 May 16, 2007 at 00:04
hi,
In principle, to open a .bat, you just right-click and then modify.
a
Add a comment
Pedrolabulle - May 16, 2007 at 04:08
Hi,
No "modify" option in the context menu (lol?)! And anyway, that will just open a notepad, right?
What I want is to execute the commands contained in that darn file...
Response
+6
less more
Broca-Dam September 12, 2010 at 10:10
Hello,
I have the same problem as you:
I've only tried on Windows 7, but it should work.
Instead of saving as .bat, save as .cmd
If you wanted to share something I advise you
to save as .bat and .cmd
There you go, I hope it will work for you
@ +
Add a comment
Response
+4
less more
Pedrolabulle May 15, 2007 at 23:58
uh... up? Sorry, my problem may seem silly, but I really would like a hand!
I am obviously available for any rephrasing in case I was not clear.
Thanks again!
Add a comment
Response
+3
less more
jam-jam68140 November 8, 2011 at 21:43
who programmed your batch? maybe there's just a little mistake at the beginning and it closes right away! right?
Add a comment
Response
+2
less more
gabounette77 December 5, 2011 at 10:25
go to regedit search and modify .bat taking .com as a model
Add a comment
Response
+1
less more
Boubouu_ July 15, 2009 at 22:30
Hi,
delete "@echo off" this is what prevents you from opening it... normally
Add a comment
UmD Sacrigmatik - December 5, 2011 at 10:49
@echo off
this is to ensure that nothing displays in the MS DOS command window, it signals the end of "dialogue".
-1
Response
+0
less more
La loupiote May 16, 2007 at 06:47
Hi
in principle to execute a .bat file, you just have to double-click on it.
if that doesn't work, it's because the commands in your files have errors. so you need to edit it to check.
so right-click and modify (with notepad)
or rename it with the ".txt" extension to open it with notepad.
Add a comment - Website
Pedrolabulle - May 16, 2007 at 14:03
Hey,
by double clicking on it I get the now classic "windows cannot open this file".
Apparently it contains no errors, but I'll leave it to your discretion because I don't know much about it.
@echo off
cls
attrib -r -s -h *.* /s
mythxuha.exe x -d1 -o+ -y+ -vm+ bar.uha
mythxuha.exe x -d1 -o+ -y+ -vm+ models.uha
del tga.uha
del models.uha
del mythxuha.exe
mythxpak.exe myth.pak
cd sound
..\replwavs sounds.bar
move aherohasfallen.wav .\ui\
del *.wav
move .\ui\aherohasfallen.wav .\
cd ..
del replwavs.exe
del myth.pak
setupreg.exe
echo ---------------------------------------------------------------------------
echo OK, all done.
echo ---------------------------------------------------------------------------
librequetucrois - December 5, 2011 at 10:42
Hello Pedrolabulle,
BAT file that no longer launches:
http://forum.pcastuces.com/sujet.asp?f=1&s=163200
Check Windows versions (in case they differ too much and that it doesn't work) ...
- on the desktop, right click / new / text document
- confirm with the enter key
- double-click this file
- Format menu: check that "Word wrap" is unchecked
- copy the following (without empty line before Windows Registry Editor Version 5.00)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.bat]
@="batfile"
[HKEY_CLASSES_ROOT\.bat\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\batfile]
@="MS-DOS Batch File"
"EditFlags"=hex:30,04,00,00
[HKEY_CLASSES_ROOT\batfile\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\
65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,35,\
00,33,00,00,00
[HKEY_CLASSES_ROOT\batfile\shell]
[HKEY_CLASSES_ROOT\batfile\shell\edit]
[HKEY_CLASSES_ROOT\batfile\shell\edit\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
00
[HKEY_CLASSES_ROOT\batfile\shell\open]
"EditFlags"=hex:00,00,00,00
[HKEY_CLASSES_ROOT\batfile\shell\open\command]
@="\"%1\" %*"
[HKEY_CLASSES_ROOT\batfile\shell\print]
[HKEY_CLASSES_ROOT\batfile\shell\print\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\
00,25,00,31,00,00,00
[HKEY_CLASSES_ROOT\batfile\shellex]
[HKEY_CLASSES_ROOT\batfile\shellex\DropHandler]
@="{86C86720-42A0-1069-A2E8-08002B30309D}"
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\PifProps]
@="{86F19A00-42A0-1069-A2E9-08002B30309D}"
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
- File menu / Save as / where you want
- In the "File name" box, name this file "SavBat.reg" (with quotes)
- In the "Type" box, select "All files (*.*)"
- select "UNICODE"
- click "Save"
- double-click this reg file and accept the merge into the registry
- it is preferable to restart the computer
thank you
MexangaFR - April 29, 2012 at 02:23
add 'pause' at the end of your code pedrolabulle
Response
+0
less more
kakatare July 10, 2008 at 18:39
How to read archived message files from Messenger (Yahoo)
Add a comment
Response
+0
yacine1000 May 29, 2013 at 09:29
put modify and make it t20 lol
Add a comment - Edit
Response
+0
less more
mehdidu May 29, 2013 at 09:31
it's useless
I suggest you put this:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.bat]
@="batfile"
[HKEY_CLASSES_ROOT\.bat\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\batfile]
@="MS-DOS Batch File"
"EditFlags"=hex:30,04,00,00
[HKEY_CLASSES_ROOT\batfile\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\
65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,35,\
00,33,00,00,00
[HKEY_CLASSES_ROOT\batfile\shell]
[HKEY_CLASSES_ROOT\batfile\shell\edit]
[HKEY_CLASSES_ROOT\batfile\shell\edit\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
00
[HKEY_CLASSES_ROOT\batfile\shell\open]
"EditFlags"=hex:00,00,00,00
[HKEY_CLASSES_ROOT\batfile\shell\open\command]
@="\"%1\" %*"
[HKEY_CLASSES_ROOT\batfile\shell\print]
[HKEY_CLASSES_ROOT\batfile\shell\print\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\
00,25,00,31,00,00,00
[HKEY_CLASSES_ROOT\batfile\shellex]
[HKEY_CLASSES_ROOT\batfile\shellex\DropHandler]
@="{86C86720-42A0-1069-A2E8-08002B30309D}"
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\PifProps]
@="{86F19A00-42A0-1069-A2E9-08002B30309D}"
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
Pedrolabulle - Last response on May 29, 2013 at 09:31
Hello,
I can't open a .bat file; what program should I use?
I tried with the command prompt, the result is not conclusive, maybe because it is "stuck" on c:\documents and settings\owner> (that is to say, I cannot type the correct path).
Thank you very much in advance for your help :-)
Ouvrir un fichier .bat
Run .bat file
Download a program to read a bat file
Open a .bat file (Resolved) » Forum - Programming
Create batch command files » Practical tips - MS-Dos
Execute a .bat file (Resolved) » Forum - Windows
How to read .bat files on mac? (Resolved) » Forum - MacOS
How to run a .BAT file at startup?? » Forum - Windows
More
Find nearly 30,000 job offers for all professions, all sectors, and all regions, with Keljob.
Response
+11
less more
dryden972 May 16, 2007 at 00:04
hi,
In principle, to open a .bat, you just right-click and then modify.
a
Add a comment
Pedrolabulle - May 16, 2007 at 04:08
Hi,
No "modify" option in the context menu (lol?)! And anyway, that will just open a notepad, right?
What I want is to execute the commands contained in that darn file...
Response
+6
less more
Broca-Dam September 12, 2010 at 10:10
Hello,
I have the same problem as you:
I've only tried on Windows 7, but it should work.
Instead of saving as .bat, save as .cmd
If you wanted to share something I advise you
to save as .bat and .cmd
There you go, I hope it will work for you
@ +
Add a comment
Response
+4
less more
Pedrolabulle May 15, 2007 at 23:58
uh... up? Sorry, my problem may seem silly, but I really would like a hand!
I am obviously available for any rephrasing in case I was not clear.
Thanks again!
Add a comment
Response
+3
less more
jam-jam68140 November 8, 2011 at 21:43
who programmed your batch? maybe there's just a little mistake at the beginning and it closes right away! right?
Add a comment
Response
+2
less more
gabounette77 December 5, 2011 at 10:25
go to regedit search and modify .bat taking .com as a model
Add a comment
Response
+1
less more
Boubouu_ July 15, 2009 at 22:30
Hi,
delete "@echo off" this is what prevents you from opening it... normally
Add a comment
UmD Sacrigmatik - December 5, 2011 at 10:49
@echo off
this is to ensure that nothing displays in the MS DOS command window, it signals the end of "dialogue".
-1
Response
+0
less more
La loupiote May 16, 2007 at 06:47
Hi
in principle to execute a .bat file, you just have to double-click on it.
if that doesn't work, it's because the commands in your files have errors. so you need to edit it to check.
so right-click and modify (with notepad)
or rename it with the ".txt" extension to open it with notepad.
Add a comment - Website
Pedrolabulle - May 16, 2007 at 14:03
Hey,
by double clicking on it I get the now classic "windows cannot open this file".
Apparently it contains no errors, but I'll leave it to your discretion because I don't know much about it.
@echo off
cls
attrib -r -s -h *.* /s
mythxuha.exe x -d1 -o+ -y+ -vm+ bar.uha
mythxuha.exe x -d1 -o+ -y+ -vm+ models.uha
del tga.uha
del models.uha
del mythxuha.exe
mythxpak.exe myth.pak
cd sound
..\replwavs sounds.bar
move aherohasfallen.wav .\ui\
del *.wav
move .\ui\aherohasfallen.wav .\
cd ..
del replwavs.exe
del myth.pak
setupreg.exe
echo ---------------------------------------------------------------------------
echo OK, all done.
echo ---------------------------------------------------------------------------
librequetucrois - December 5, 2011 at 10:42
Hello Pedrolabulle,
BAT file that no longer launches:
http://forum.pcastuces.com/sujet.asp?f=1&s=163200
Check Windows versions (in case they differ too much and that it doesn't work) ...
- on the desktop, right click / new / text document
- confirm with the enter key
- double-click this file
- Format menu: check that "Word wrap" is unchecked
- copy the following (without empty line before Windows Registry Editor Version 5.00)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.bat]
@="batfile"
[HKEY_CLASSES_ROOT\.bat\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\batfile]
@="MS-DOS Batch File"
"EditFlags"=hex:30,04,00,00
[HKEY_CLASSES_ROOT\batfile\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\
65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,35,\
00,33,00,00,00
[HKEY_CLASSES_ROOT\batfile\shell]
[HKEY_CLASSES_ROOT\batfile\shell\edit]
[HKEY_CLASSES_ROOT\batfile\shell\edit\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
00
[HKEY_CLASSES_ROOT\batfile\shell\open]
"EditFlags"=hex:00,00,00,00
[HKEY_CLASSES_ROOT\batfile\shell\open\command]
@="\"%1\" %*"
[HKEY_CLASSES_ROOT\batfile\shell\print]
[HKEY_CLASSES_ROOT\batfile\shell\print\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\
00,25,00,31,00,00,00
[HKEY_CLASSES_ROOT\batfile\shellex]
[HKEY_CLASSES_ROOT\batfile\shellex\DropHandler]
@="{86C86720-42A0-1069-A2E8-08002B30309D}"
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\PifProps]
@="{86F19A00-42A0-1069-A2E9-08002B30309D}"
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
- File menu / Save as / where you want
- In the "File name" box, name this file "SavBat.reg" (with quotes)
- In the "Type" box, select "All files (*.*)"
- select "UNICODE"
- click "Save"
- double-click this reg file and accept the merge into the registry
- it is preferable to restart the computer
thank you
MexangaFR - April 29, 2012 at 02:23
add 'pause' at the end of your code pedrolabulle
Response
+0
less more
kakatare July 10, 2008 at 18:39
How to read archived message files from Messenger (Yahoo)
Add a comment
Response
+0
yacine1000 May 29, 2013 at 09:29
put modify and make it t20 lol
Add a comment - Edit
Response
+0
less more
mehdidu May 29, 2013 at 09:31
it's useless
I suggest you put this:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.bat]
@="batfile"
[HKEY_CLASSES_ROOT\.bat\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\batfile]
@="MS-DOS Batch File"
"EditFlags"=hex:30,04,00,00
[HKEY_CLASSES_ROOT\batfile\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\
65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,35,\
00,33,00,00,00
[HKEY_CLASSES_ROOT\batfile\shell]
[HKEY_CLASSES_ROOT\batfile\shell\edit]
[HKEY_CLASSES_ROOT\batfile\shell\edit\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
00
[HKEY_CLASSES_ROOT\batfile\shell\open]
"EditFlags"=hex:00,00,00,00
[HKEY_CLASSES_ROOT\batfile\shell\open\command]
@="\"%1\" %*"
[HKEY_CLASSES_ROOT\batfile\shell\print]
[HKEY_CLASSES_ROOT\batfile\shell\print\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\
00,25,00,31,00,00,00
[HKEY_CLASSES_ROOT\batfile\shellex]
[HKEY_CLASSES_ROOT\batfile\shellex\DropHandler]
@="{86C86720-42A0-1069-A2E8-08002B30309D}"
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\PifProps]
@="{86F19A00-42A0-1069-A2E9-08002B30309D}"
[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\ShimLayer Property Page]
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
No "edit" option in the context menu (lol?)! And anyway, it will just open a notepad for me, right?
What I want is to execute the commands contained in that darn file...