Over the last few days I have been converting old video files from avi to mp4. I've been doing this using the command line version of DivX. This is the process behing the DivXPro GUI and it is named `DivXEngine.exe`. Converting video files takes a big hit on the CPU and I would prefer to set the process to a lower priority to minimize the impace on my usual tasks. Under Windows 7 there was a utility program that could be used to permanently change a task priority. Unfortunately it no longer works in Windows 10 so I did the …

Member Avatar
+1 forum 0

Hi Guys. I'm trying to suspend a process by it name, but I found the sample that demontrate this using ProcessId. The problem is that I don't know the process ID of the process I want to suspend/resume. [Here is a sample I used.](https://social.msdn.microsoft.com/Forums/en-US/cdde6cef-3971-40a6-b4dd-02db963868ce/suspend-an-application?forum=vbgeneral)

Member Avatar
Member Avatar
+0 forum 1

I'm creating an application that with continuously attempt to run a list of programs until they are open. I'm having an issue when it comes to programs that require administrative priveleges however. I've done some searching and found the below script (in createElevationScript()) that *should* run a program with administrative priveleges, however it doesn't start the program successfully. Here's the relevant code: public void tryStart() { if (!checkRunning()) { try { ProcessBuilder processBuilder = new ProcessBuilder(); processBuilder.command(path); processBuilder.start(); } catch (IOException e) { System.out.println("ForceStartUp: Insufficient privileges to run ProgramEntry with Name '" + name + "' at Path '" + …

Member Avatar
Member Avatar
+0 forum 5

Hi Dw. I have a project that uses Process to marge some files, now because the merging can take quite sometime I've used BackgroundWork. The main problem I'm facing is to know when the Process is done because I want to delete the files that it was merging with so that the file will only contain the finished output which is a file that is produced by merging these other files. I have this code. Private proc1 As New Process proc1.StartInfo.FileName = Application.StartupPath & "\ffmpeg.exe" proc1.StartInfo.Arguments = String.Format(" -I " & "C:\V.mp4" & " -I " & "C:\M.wav c:\final.mp4") proc1.StartInfo.UseShellExecute …

Member Avatar
Member Avatar
+0 forum 8

Is this try catch block enough to ensure the process ran successfully? protected boolean attemptLaunch() { try { System.out.println("Attempting to open '" + name + "'."); //Try to open the Process new ProcessBuilder(path).start(); return true; } catch (IOException e) { System.out.println("Opening failed. Will retry during next Iteration."); return false; } }

Member Avatar
Member Avatar
+0 forum 3

Hi, I'm having SlimPDF which used to read PDF & I want to open SlimPDF inside of split panel but it is opening as new window. I tried to open notepad in split panel using my code, works fine but this SlimPDF is not opening inside the panel. Pls help me to solve this issue.

Member Avatar
Member Avatar
+0 forum 1

Hi I am working on a simple C++.Net project which will allow me to run another program (e.g., I. Ex., Word etc.). However, I can't seem to find any working codes online. Here are the codes I have found so far; ShellExecute(GetDesktopWindow(), "open", "c:\myTestFolder\myfile.exe", NULL, NULL, SW_SHOWNORMAL); requires the inclusion of the header Windows.h The error that I get says "Argument of type Const Char is not compatible with parameter type LPCWSTR ???? System("iexplore.exe); This is the code that I thought would accomplish this at first but also did not work. Error says "Not recognized as an internal or external …

Member Avatar
Member Avatar
+0 forum 2

can anyone how to disable process such as explorer.exe at startup windows7 until i was true entering password? i want make log in display as my style.. thanks before.

Member Avatar
+0 forum 0

Well I'm trying to make a program that have ListBox1 which when the button1 is pressed the Listbox1 will show all the open windows of notepad, like get notepad.exe and it will show Example the name: Untitled - Notepad nothing else, i have a code right now that i found but it Shows a few things, look at this picture. [url]http://img37.imageshack.us/img37/1241/getn.png[/url] It says MSCTFIME UI And Default IMe, i don't want that to show... This is the code i have right now. Form1 [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Lst = Me.ListBox1 EnumWindows(AddressOf EnumWindowsCallBack, …

Member Avatar
Member Avatar
+0 forum 5

Hi Guys I need help in capturing action of running process, forexample i have created a simple application in vb.net in which there is a button when we click on this button then it shows a msgbox, now i want to make a application which will be another application and will capture its mouse click event by attaching to first application and i also want to change the first application behavior, like if it shows msgbox 1 time i want to show this message multiple time like loop, can you guys please help me Regards

Member Avatar
+0 forum 0

This is my first time working with php. I used a sample php mail code to process the mail. After entering in the form info and hit the send it button should show a new window that the mail was sent. The email does not send with the contents from the input fields. I left my email out in the top of this code. I just relaized at the time of this writing I do not have a thanks.htm so will create this file. The php is not sending the mail and is residing on my linux server with php …

Member Avatar
Member Avatar
+0 forum 2

Just started learning c++ and ive got a bit stuck :L Im making a console application that injects a file into a process. The file name and process name are both specified at the start of the code using char FileToInject[] = "File_Name.xxx"; char ProcessName[] = "Process_Name.exe"; The console works fine, however the process name and file name are now fixed once ive compiled the console, and I am unable to change the file/process later on. What I would like to do is have the console ask for file name, and the process name, so I dont need to create …

Member Avatar
Member Avatar
+0 forum 2

A program which has the main process as Director process, which reads a file containing marks of all quizzes of all sections and creates x number of Manager processes. Each Manager process will take care of solving for a section. Each manager process will create y number of worker process and pass one quiz to each of them and they calculate and print the average. HINTS There are x number of sections in a course. In each section y numbers of quizzes are conducted. The average for each quiz in all the sections needs to be found out. Read x …

Member Avatar
Member Avatar
+0 forum 2

hey guys so im doing a really simple sign up form but its not working. maybe im doing smtg wrong. form: <form method="post" action="PersonalDetails_Process.php"><!--link to DB--> <br> <h1><center>PERSONAL DETAILS</center></h1> <br> <br> <label>Name <span class="small">Add your name</span> </label> <input type="text" name="name" id="name" required /> <label>Phone <span class="small">Add your phone</span> </label> <input type="text" name="phone" id="phone" maxlength= "20" size="20" required /> <label>Email <span class="small">Add a valid address</span> </label> <input type="text" name="email" /> <br> <br> <br> <input type="submit" name="next" value="Next"/> <div class="spacer"></div> </form> process : <?php include "dbase.php"; //Dapatkan details if(isset($_POST['next'] )) { $name = mysql_real_escape_string($_POST['name']); $phone = mysql_real_escape_string($_POST['phone']); $email = mysql_real_escape_string($_POST['email']); $query =@mysql_query("INSERT …

Member Avatar
Member Avatar
+0 forum 2

Hello, Im messing with processes for a project that Im doing, so if I detect that the specific process Im checking changes the title containing a specific word like "Hello" I will kill the process and start it again. Im doing this with a timer so every X secs/minutes it checks for the title: Process[] processPads = Process.GetProcessesByName("notepad"); foreach (Process processes in processPads) { if (!processes.MainWindowTitle.Contains("Untitled")) { processes.Kill(); Process.Start("notepad"); } } That's what I have and works and everything but when I click anything on the menu like "File/Edit/Format/View/Help/etc" If I click any of those notepad gets killed and it …

Member Avatar
Member Avatar
+1 forum 5

Hi members, This is a program i wanted to implement semaphore between parent and child processes which are trying to access a shared variable called counter ... i dont know why it is not getting incremented during the child process !! someone help please !! #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <semaphore.h> #include <stdlib.h> #include <errno.h> #include <string.h> sem_t mutex; int counter; int main () pid_t child_pid; sem_init(&mutex, 0, 1); printf ("the main program process ID is %d\n", (int) getpid ()); child_pid = fork (); if (child_pid != 0) { printf ("This is the parent process, with id %d\n", …

Member Avatar
Member Avatar
+0 forum 2

Write Java program that generates the Fibonacci sequence in the child process. The number of the sequence will be provided in the command line. For example if 10 is provided, the fibonacci numbers less than 10 will be output by the child process. Because the parent and the child processes have their own copies of the data, it will be necessary for the child to output the sequence. Perform necessary error checking to ensure that a valid number is passed on the command line. Output should show following six test cases $ fib 10 0, 1, 1, 2, 3, 5, …

Member Avatar
Member Avatar
-1 forum 1

Hello everyone! Recently I have been incredibly interested in language design/implementation. I have written multiple functioning language front ends (Lexer, Parser, some execution) and have decided a few things. My systems are getting ugly, there needs to be more abstraction I can't execute code in the parser -- it's just not a realistic way to go at the code. So I thought I would try something new, a virtual machine with an intermediate language that could be generated. So I have created something, essentially a simple stack based assembly like language, example: ; hello world push "Hello, world!" print ; …

Member Avatar
Member Avatar
+0 forum 1

how can i make the system (execution process )wait for some periode of time

Member Avatar
Member Avatar
+0 forum 7

In our college we practice python on ssh. This command prints all the computers ( processes ) logged in. ps -A | grep bash I was wondering how to obtain my process ID for that session.

Member Avatar
Member Avatar
+0 forum 4

I would like to end the process. In Task Manager, but it is not the end. So I want a different way. This process changes the port randomly. PID is also random. How to exit from this situation? I need a source to bat. Process Search> PID Search> PID using the following command:> Examples. netstat-a-n-o | find ":% port%" "kill% target%"

Member Avatar
Member Avatar
+1 forum 2

Hello! I'm currently running in to an issue where I need to loop through a specific log file until a string of text occurs, which indiciates that I can continue on with the application. Here is my code and logic: Dim process As New Process() Dim serverLog As String Dim instance As String Dim server As String Dim list As New ArrayList() server = cmdTextbox1.Text instance = cmdInstance.Text Dim rdsLog As String = "\\" & server & "\c$\rds\server\" & instance & "\log\server.log" Dim i As Integer Dim ItemList As New ArrayList() process.StartInfo.UseShellExecute = False process.StartInfo.RedirectStandardOutput = True process.StartInfo.RedirectStandardError = True …

Member Avatar
Member Avatar
+0 forum 3

Hello. I am working on a Perl script that shoulld iterate through ~100 links from a MySQL table and test the links one at a time. I am using rtmpdump/mplayer to test the links (which are streaming videos), and I want to e-mail out a report after testing all the links. The problem is the script seems to be running multiple times instead of just iterating through the list of all the links once. Also script is leaving the child "rtmpdump" and "mplayer" processes running in the background so I have thousands of orphaned processes after the script has run. …

Member Avatar
Member Avatar
+0 forum 3

Okay I am trying to write a program where a parent process creates three child processes. Also waits for each of them to finish. Here is my code: [code] #include <stdio.h> #include <unistd.h> main() { int i; // create 3 child processes for (i = 0; i < 3; i++) { if (fork() == 0) { printf("Child process no.%d with ID: %d created from parent process\n", i); break; } } // wait for each child process to finish } [/code] There is one error line "if (fork() == 0) {" What is wrong with that? I tried to run it …

Member Avatar
Member Avatar
+0 forum 6

I'm trying to process a list contained within a separate text file. I am able to read the file, and generate an output containing the contents of the file, but the output generated is the unprocessed version, identical to the input. I do not encounter this problem when the list is contained within the module that I'm working with - the process runs successfully. Any ideas why using the input file is causing problems? This runs successfully (please note - for both runs, "correct" is a function within the same module): import sys sys.stdout = open('out.txt','w') def spelltest(): for i …

Member Avatar
Member Avatar
+0 forum 3

Hi, Everyone, I've coded a program that uses a web browser control and loads a java applet, the process created when the java applet was loaded is java.exe, then on another tab, I've executed again a java applet and created again a java.exe process, now I need to kill the java.exe process for the specific web browser. How can I do that? The one I've found in google kills all java.exe process, how can I exactly kill the process? Any inputs will be appreciated. Thank you in advance.

Member Avatar
Member Avatar
+0 forum 7

I'm probably doing this wrong, because there has to be a way to do this. Here is my current code: import javax.sound.sampled.*; public class soundHandler{ soundHandler() { } public void newSound(String sound) { new soundThread(sound).start(); } } class soundThread extends Thread { String soundName; Clip clip = null; soundThread(String i_soundName) { soundName = i_soundName; } public void run() { try{ try{ try{ AudioInputStream stream = AudioSystem.getAudioInputStream(ClassLoader.getSystemClassLoader().getResource(soundName)); DataLine.Info info = new DataLine.Info(Clip.class, stream.getFormat()); clip = (Clip)AudioSystem.getLine(info); clip.open(stream); }catch(Exception e){System.out.println("err= soundThread_errorLoadingSound ("+soundName+")");} clip.start(); }catch(Exception e){System.out.println("err = soundThread_errorPlayingSound ("+soundName+")");} Thread.sleep(150); //wait for it to finish, then close while(clip.isActive()){} clip.close(); }catch(Exception e){System.out.println("err= soundThread_error");e.printStackTrace();return;} } …

Member Avatar
Member Avatar
+0 forum 2

**My academic assignmentt ** **Please help me in coding for this assignment** In Linux Ubuntu flavor, write a program in C language to do the following tasks. 1) Use fork ( ) system call to create a child process. 2) Child process should first take student name as input and then it should display student name that it takes from user. At last, child process should display numbers from 0 to 5. 3) Parent process should first take Student ID as input and then it should display Student ID that it takes from user. At last, parent process should display …

Member Avatar
Member Avatar
+0 forum 3

hi, so got a question regargind sending a handler, i have a class for UpdateClient and it has a queue that holds data. this data sould be sent to ether P1 or P2 which are instances of process. Proxy anoher class has to keep track on who is the promary processor whether it is P1 or P2. in the P1 instance i created an bool value if P1 is the primary it is set to true. how do i get this value from Proxy? howp i explained the question clearly. thanks

Member Avatar
Member Avatar
+0 forum 3

I've been working on this code for 2 days now and i finally think i got the while loop running correctly but now i cant seem to print the child process id's. The code starts with the parent process forking 3 child processes. Then the parent must wait till a child terminates to print out that child's PID. Any tips to fix my output is greatly appreciated. #include <stdio.h> //exit function #include <stdlib.h> //unix functions #include <unistd.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/shm.h> #define SHMKEY ((key_t) 7890) typedef struct { int value; } shared_mem; shared_mem *total; /*----------------------------------------------------------------------* * This function …

Member Avatar
Member Avatar
+0 forum 1

The End.