panlatv Posted January 12, 2008 Share Posted January 12, 2008 Hello, If i do that in a GUI : run ("cmd.exe vlc.exe name_movie") The "cpu load" of my program not change. but if i do this: run ("vlc.exe name_movie") The "cpu load" of my program change, like the "cpu load" of vlc change (or something like that) So, the run fonction "communicate" with vlc? It's very strange... or it's not the good explanation? (in reality vlc "play" a dvb-t chanel not a movie) Link to comment Share on other sites More sharing options...
WolfWorld Posted January 12, 2008 Share Posted January 12, 2008 OK If we run vlc.exe directly our program CPU LOAD will changeIf we run cmd.exe the CPU Load of cmd.exe changeBut we can not use any track of vlc.exe with StderrRead at allBut If we use StderrRead then it will read cmd.exeI THINK. I NEVER TRY. I'M JUST GUESSING Main project - Eat Spaghetti - Obfuscate and Optimize your script. The most advance add-on.Website more of GadGets! Link to comment Share on other sites More sharing options...
MHz Posted January 12, 2008 Share Posted January 12, 2008 Hello, If i do that in a GUI : run ("cmd.exe vlc.exe name_movie") The "cpu load" of my program not change. but if i do this: ... ...I would consider the syntax of the first code shown should be run ("cmd.exe /c vlc.exe name_movie") Without the " /c " switch, then your just running cmd.exe and passing 2 parameters which may not do what you initially wanted. Link to comment Share on other sites More sharing options...
panlatv Posted January 13, 2008 Author Share Posted January 13, 2008 (edited) I would consider the syntax of the first code shown should be run ("cmd.exe /c vlc.exe name_movie") Without the " /c " switch, then your just running cmd.exe and passing 2 parameters which may not do what you initially wanted. Yes you are right, little mistake. But in my code is ok (no mistake). My question is: why the cpu load of my GUI change like the change of the cpu load of vlc, in this exemple run ("vlc.exe movie")? ex: if the cpu load of vlc =4%, the cpu load of my GUI (who "run/start" vlc) is 2%, then if the cpu load of vlc =2% then the GUI = 1% It's very strange, normally, the cpu load of a GUI doesn't depend of cpu load of a running program, isn't it? In my code, my GUI/soft doesn't try to read information about the state of vlc, only run vlc with the good command line, that'all. (the soft does other thing: control process of vlc, run streaming on multicast IP, start multi-record..., but the cpu load of my GUI is independent of vlc) (sorry for my bad english ) Edited January 13, 2008 by panlatv Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now