How do i open an ms-dos batch file?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
emilianadal
Posts: 1
Joined: 19 Dec 2011 01:51
Location: new york

How do i open an ms-dos batch file?

#1 Post by emilianadal » 19 Dec 2011 01:54

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
Last edited by emilianadal on 28 Dec 2011 06:16, edited 1 time in total.

orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

Re: How do i open an ms-dos batch file?

#2 Post by orange_batch » 19 Dec 2011 04:07

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.

dbenham
Expert
Posts: 2461
Joined: 12 Feb 2011 21:02
Location: United States (east coast)

Re: How do i open an ms-dos batch file?

#3 Post by dbenham » 19 Dec 2011 10:12

If by open you mean look at the code, then simply right click on the file and select "Edit".

taripo
Posts: 228
Joined: 01 Aug 2011 13:48

Re: How do i open an ms-dos batch file?

#4 Post by taripo » 20 Dec 2011 16:02

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

Post Reply