Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
runtime.exec
- Page 1
Re: Read file properties of video files in C++
Programming
Software Development
2 Months Ago
by rproffitt
When you asked for
runtime
you triggered a memory from long ago where MP3 runtimes … exact. So here's the thing, you may want that
runtime
but it's not always available and sometimes incorrect. Look…/en/MediaInfo/Support/Formats see what it reports on MKV
runtime
. I don't want to give away the answer or…
Read file properties of video files in C++
Programming
Software Development
2 Months Ago
by Thomasio
I want to figure out what Windows does when you right-click a video file and check properties and I would like to write a similar piece of code in C++. I should be able to figure out how to read the file type and size, but I'm lost in how to get details of the video like resolution and
runtime
. Which API commands does Windows use there?
Re: GCC Fails to Recognize Parameters
Programming
2 Months Ago
by toneewa
While I haven't used DJGPP for a couple decades, I decided to install the ffmpeg library and do a test program another way. For me, the declarations worked changing: #include "os_support.h" #include "avformat.h" #include "internal.h" #if CONFIG_NETWORK #include "network.h" #…
Re: Read file properties of video files in C++
Programming
Software Development
2 Months Ago
by pritaeas
Here's a good place to start: https://mediaarea.net/en/MediaInfo
Re: Read file properties of video files in C++
Programming
Software Development
2 Months Ago
by Thomasio
How would that help me? That's just another program that does more or less the same Windows does, but doesn't mention which API commands one needs to get this output. It's open source, meaning one could look into the code and try to figure out the relevant commands but we all know figuring out what someone elses code does takes far longer than …
Re: Read file properties of video files in C++
Programming
Software Development
2 Months Ago
by pritaeas
> It's open source, meaning one could look into the code That's the way I learn... There is no real Windows API to read video info, as this info is different for each video format. With the Windows Property System you can read some information, but it is not accessible with all platforms. Personally I'd choose to learn how to read the …
Re: Read file properties of video files in C++
Programming
Software Development
2 Months Ago
by Thomasio
Yes, I know, Windows doesn't report details for all video files, sometime it just doesn't and I already guessed that may be because of a file format Windows cannot read correctly. But then for the video files where Windows does report details within the file properties it gets them correct and it does that in near no time which makes me believe …
Re: Read file properties of video files in C++
Programming
Software Development
2 Months Ago
by rproffitt
Regarding "doesn't open the file". I've used so many tools over the years to profile and log what apps access that I can write that Windows does open the file for a peek. And then we have the problem that many files don't have duration. https://www.loc.gov/preservation/digital/formats/fdd/fdd000105.shtml is for MP3 and it's not in …
Re: Read file properties of video files in C++
Programming
Software Development
2 Months Ago
by Salem
If you want to know what windows is up to when you do something, then try using https://learn.microsoft.com/en-us/sysinternals/downloads/procmon
Re: Read file properties of video files in C++
Programming
Software Development
2 Months Ago
by toneewa
The [Windows Media Foundation API](https://learn.microsoft.com/en-us/windows/win32/api/mfmediaengine/nf-mfmediaengine-imfmediaengine-getduration#requirements) is probably what you are thinking of. You also can just use my example, using the ffmpeg library. Just change the filename. extern "C" { #include <libavformat/…
Re: Read file properties of video files in C++
Programming
Software Development
2 Months Ago
by Thomasio
Thanks @toneewa that looks like what I want, at least a basis from where I can try to work it out for my needs.
Java Runtime.exec
Programming
Software Development
10 Years Ago
by sankubha
how to run
runtime
.
exec
in java with administrator privelage
Re: Runtime class
Programming
Software Development
17 Years Ago
by meduri99
…Every Java application has a single instance of class
Runtime
that allows the application to interface with the … in which the application is running. The current
runtime
can be obtained from the getRuntime method. An… external process [*]You must use
Runtime
.
exec
() to execute programs [*]You cannot use
Runtime
.
exec
() like a command line[/LIST]
Re: Runtime class
Programming
Software Development
17 Years Ago
by thekashyap
…in my case the command that I execute using
Runtime
.
exec
() expects a password to be input by user… -> Executing: "+lCmdStrStr); Process lChldProc =
Runtime
.getRuntime().
exec
(lCmdStrStr); // Sending the password to the perl script …writeLog(sLogObj.INFO,"JTrcMgrAnalyzeCom -> Failed to
exec
the analyze cmd, exit code of child is:&…
Re: Runtime class
Programming
Software Development
17 Years Ago
by thekashyap
….. I'll try to explain once more: If you do
Runtime
.
exec
("dir"); in your code and run it, you….INFO,"JTrcMgrAnalyzeCom -> Executing: "+lCmdStrStr); Process lChldProc =
Runtime
.getRuntime().
exec
(lCmdStrStr); // Wait for the child to exit lChldProc.waitFor(); BufferedReader…
Re: Runtime class
Programming
Software Development
17 Years Ago
by jwenting
in general: Do NOT use that. There's almost never a need to use
Runtime
.
exec
or any of the other methods from the
Runtime
class unless maybe you're writing a compiler or classloader. Using File works fine, IF you have rights to delete the files. If you don't, running a del command should not work either.
Process started with Runtime.getRuntime().exec() stops responding after a while
Programming
Software Development
16 Years Ago
by the.alchemist
…a problem when I launch OpenVPN using Java
Runtime
.getRuntime().
exec
(), a problem I have been trying to …1 9006 --management-query-passwords"; Process v =
Runtime
.getRuntime().
exec
(cmd); //.. connect to managemant console, enter username and…not sure if it's related : [CODE]The
Runtime
.
exec
methods may not work well for special processes on…
WaitFor Runtime exec to complete (Java)
Programming
Software Development
13 Years Ago
by Tango2010
… -R " + "/filea/ " + "/fileb/"}; Process punixcopy =
Runtime
.getRuntime().
exec
(unixcopy); } catch (Throwable t) { t.printStackTrace(); } [/CODE]
Runtime Error 424 object required (was: Please Help!)
Programming
Software Development
19 Years Ago
by XxMinionxX
Runtime
Error 424 object required happens when I attempt to open …
“RunTime-13” Type mismatch error in code after access 2003 convert to 2010
Programming
Databases
7 Years Ago
by alam_1
“
RunTime
-13” Type mismatch error in code after access 2003 convert to 2010.
Runtime failure
Hardware and Software
Microsoft Windows
3 Years Ago
by 44kerrnilly
runtime
failure is a big issue
Re: Java Runtime.exec
Programming
Software Development
10 Years Ago
by stultuske
afaik, admin privilige is handled by your OS, not your Java application.
Re: Java Runtime.exec
Programming
Software Development
10 Years Ago
by sankubha
thank u :)
Re: Runtime error ??!!
Hardware and Software
Microsoft Windows
20 Years Ago
by DMR
Runtime
/stack overflow errors basically indicate that a running program tried …
Re: Runtime error:453 cannot find dllentrypoint
Programming
Software Development
17 Years Ago
by PVBert
runtime
error 91: somewhere in your code you probably didn't use SET , example: Dim a as SOMEOBJECT a = .... instead of: SET a = New SOMEOBJECT
Re: (Runtime error , compile time error)? difference.
Programming
Software Development
13 Years Ago
by Ancient Dragon
runtime
error: an error that occurs then your program is run such as division by 0, buffer overruns and corrupt stack. There are an infinite (or nearly infinite) number of these errors so its not possible to list them all. compile time error: errors that your compiler produces when it tries to build the program.
Re: Runtime Error '429' - ActiveX Component Can't Create Object
Programming
Software Development
9 Years Ago
by caseywillson
Runtime
error 429 is very common error which occur due to the ActiveX error it means your system warning you to that your computer have corrupted activex file. so you have to fix this error as soon as possible with the help of [windows repair tool](http://www.removewindowserrors.com).
Runtime.getRuntime().exec(String cmd) problem
Programming
Software Development
12 Years Ago
by jackmaverick1
… problem where when I input a command into the
Runtime
class's
exec
function, it doesn't run. When I try … hesitation. My problem results from the following code: [CODE]
Runtime
.getRuntime().
exec
("START "+(new File(files[i]).getAbsolutePath()+".lnk…has google, and it doesn't do any different than
Runtime
does. Thanks, Jack
Re: Runtime class
Programming
Software Development
17 Years Ago
by uh63
…this and I am using java's
Runtime
.process.
exec
() to launch runas.exe I think the… Thanks Uday Here are some code snippets: [code]
Runtime
rt =
Runtime
.getRuntime(); String [] cmd = {"cmd.exe"…;, "/C","D:/Development/saveReport.bat"}; Process process = rt.
exec
…
Runtime.getRuntime().exec(a resource in a runnable jar+" "+other stuff);
Programming
Software Development
14 Years Ago
by TheWhite
… file that contains a .exe that I'm trying to
exec
in my program like a command line function. Usually to… This would be the same as doing this in java:
Runtime
.getRuntime().
exec
("'path to .exe' -option etc etc"); What…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC