i need to open an installer and it is a ms-dos batch file. when i double click it, a command prompt comes up, and then goes away, and nothing happens! can somebody help?
HP Service Center
How do i open an ms-dos batch file?
Moderator: DosItHelp
-
- Posts: 1
- Joined: 19 Dec 2011 01:51
- Location: new york
How do i open an ms-dos batch file?
Last edited by emilianadal on 28 Dec 2011 06:16, edited 1 time in total.
-
- Expert
- Posts: 442
- Joined: 01 Aug 2010 17:13
- Location: Canadian Pacific
- Contact:
Re: How do i open an ms-dos batch file?
The batch either did its job and terminated, or there are bugs in it that made it exit early. You'll have to post the batch file contents here.
Re: How do i open an ms-dos batch file?
If by open you mean look at the code, then simply right click on the file and select "Edit".
Re: How do i open an ms-dos batch file?
emilianadal wrote:i need to open an installer and it is a ms-dos batch file. when i double click it, a command prompt comes up, and then goes away, and nothing happens! can somebody help?
yeah..
instead of double clicking it,
open a new cmd window. Now drag the icon into the cmd window. So the path is there. And then hit ENTER.
So, run the bat file within the cmd window.
Now hopefully you'll see what it does and it won't close.
If you really want to double click it, you can make it CMD /K PATH OF BAT FILE.. This would be in the properties of the "icon". Also try start..run..cmd /k DIR. compare with start..run..cmd /c DIR and see the difference