1.

Solve : General format of a to run a program in window mode.?

Answer»

I was trying to run a video file with PLAYER. But I don't find the to run a program (specialy .EXE file).
HELP ME PLEASE.What exactly are you trying to do?
Also, are you trying to do this with Command Prompt?

To start an application/executable with CMD, the command is: start "' "C:\path\to\file.exe"Thanks for response.
What I want to make a which would:
1) play a video file with ,SAY, media player or any other player for a period then
2) go to any other programm,say, to OPEN and so on.
All in window mode,[ not in Command Prompt].
-------------------------------
With regards, spdCHF.Next time, don't start a new topic to reply. Just hit

Anyways, I don't think what you want to do is possible.

You can start Windows Media Player and MS Word simultaneously, but not for example after the song finishes, open Word. It doesn't work like that.

Why do people think Command Prompt can do all these magical things?Never said an EXE couldn't run from Command Prompt......Quote from: Carbon Dudeoxide on March 28, 2009, 09:23:27 AM

Why do people think Command Prompt can do all these magical things?

It must seem very advanced to them. Like what uber-geeks do with their Unix boxes. As Arthur C. Clarke said, "Any sufficiently advanced technology is indistinguishable from magic". (His "third law of prediction".)

Disregarding the "not in command prompt but windows mode"

1. If you want to play a vide with VLC player or something you would set VLC as the default
program to start that kind of video file. With that being said, to start the video you would do:

Code: [Select]start (path to video file)

2. Then if you want to play it for a certain amount of time you would do and start another program you would
do:

Code: [Select]start (path to file)
ping 127.0.0.1 -n (amount of time to wait)
taskkill (video).*
start (path to microsoft word)

This is all disregarding the windows mode THING. But you could put this in a batch file (a text file with a .bat extension)

In response to Joedavis' post, you can just put the following:

Code: [Select]start wmplayer
start winword
It is not what he wanted though.


Discussion

No Comment Found