Comand Line window won't stay open

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author

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

Re: Comand Line window won't stay open

#2 Post by orange_batch » 31 May 2011 13:21

Command line:

cmd /k " "path" "%1" "

drgt
Posts: 160
Joined: 21 Sep 2010 02:22
Location: Greece

Re: Comand Line window won't stay open

#3 Post by drgt » 31 May 2011 14:32

ok. Thanks.

This:
C:\windows\system32\cmd.exe /k "C:\Program Files\MediaInfo\MediaInfo.exe" %1"

causes the window to stay open BUT it does not do the work. Instead I get the message:

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: Comand Line window won't stay open

#4 Post by Cleptography » 31 May 2011 14:36

- "

drgt
Posts: 160
Joined: 21 Sep 2010 02:22
Location: Greece

Re: Comand Line window won't stay open

#5 Post by drgt » 31 May 2011 14:41

Do you mean I have a quote too many? Which one?

Would you please copy and paste the correct line?

Thanks

drgt
Posts: 160
Joined: 21 Sep 2010 02:22
Location: Greece

Comand Line window won't stay open

#6 Post by drgt » 31 May 2011 14:47

Never mind, I got it. Thanks again.

C:\windows\system32\cmd.exe /k " "C:\Program Files\MediaInfo\MediaInfo.exe" "%1" "

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

Re: Comand Line window won't stay open

#7 Post by orange_batch » 31 May 2011 14:53

Yes, that would be the syntax I told you. :roll:

drgt
Posts: 160
Joined: 21 Sep 2010 02:22
Location: Greece

Comand Line window won't stay open

#8 Post by drgt » 31 May 2011 14:57

Thank you Thank you Thank you!!!!!

My mistake, sorry :oops:

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

Re: Comand Line window won't stay open

#9 Post by orange_batch » 31 May 2011 15:17

No problem. 8)

Post Reply