execute

Find the associated program to open a file using Java

I wish to open a file (lets say, a word document) from a Java application using the associated program installed on the computer (in this example, using MS Word or Open Office Writer). The catch is that I want to wait until this subprocess finishes, which can be done using the waitFor() method in the Process class. String executable = ...

C or C++: how do loaders/wrappers work?

Here's an example of what I mean... User runs LOADER.EXE program LOADER.EXE downloads another EXE but keeps it all in memory without saving it to disk Runs the downloaded EXE just as it would if it were executed from disk, but does it straight from memory I've seen a few applications like this, and I've never seen an example or an ex...

How do I execute a function from RAM on a Cortex-M3 (STM32)?

I'm trying to execute a function from RAM on a Cortex-M3 processor (STM32). The function erases the and rewrites the internal flash, so i definitely needs to be in RAM but how do I do that? What I have tried is this: Copy the function to a byte array in RAM using memcpy (checking that it gets aligned correctly), setting a function poin...

Execute file from matlab

Hi my friends. I have a simulink model in Matlab. how can I build excute file from that model? ...

Cross platform recursive file list using C++?

What is the most efficient way to recursively list files in a specific directory and its subdirectories? Should I use the standard library, or use some third party? I want this because I use v8 as a JavaScript engine, and I want to execute all scripts in some directory (and its subdirectories). If there's any built-in way to do that in...

Executing DB2 scripts in Aqua Data Studio

Hi all, I have a DB2 script which I know works because I ran it by selecting each statement and running it. (has only a couple of statements). Now the issue arrises when i select the whole query and then Execute it, I get some wierd errors. but if I select the whole query and do "Execute Current" it runs fine without any errors. Can s...

Execute another app which is not url/sms and etc.

I would like to execute another app from my app like "Angry Birds"/"Seance"/"Guitar Hero". (I know its against the rules of apple :) Is there a way I can do it? Thanks ...

Is there a way to start a jar file hidden?

I have a .jar file that I would like to run hidden in the background every time I start my computer. I use javaw -jar x.jar to load it but I can't seem to find a way to start it hidden. Is there a way? Thanks in advance. ...

How to run .sql file from a batch file?

I am running sql server 2008 express and i need to schedule some stored procedures to run nightly...so i have built out these .sql files which i would want to run from .bat file...i need to know the command to execute these .sql files one by one and store their results i guess...can anyone help me out? ...

iPhone - Execute iphone app from documents folder

Hi all, I'm writing an app which must download other apps and EXECUTE them from the documents folder. One of the approaches I was thinking about is to use a bash script like the one in installous which unzips the app and copies whatever whenever it's needed.That way I can install it,but not execute it. So I was wondering if there is a ...

opening an exe from current dir C++

I have the python code... but how do i do it in c++? I don't have much experience with c++. What i want is to make an exe that will be put as autorun in an cd. It has to open the application.ini file in my cd with xulrunner.exe in my cd. As the path will vary in each computer i hav to do something like this. import subprocess import os...

Python Application does nothing

This code stopped doing anything at all after I changed something that I no longer remember #Dash Shell import os import datetime class LocalComputer: pass def InitInformation(): Home = LocalComputer() #Acquires user information if (os.name == "nt"): Home.ComputerName = os.getenv("COMPUTERNAME") Home.Us...

How do you have python scripts display how much time it takes to execut each process?

It was something like cMessage I think? I can;t remember, could someone help me? ...

How can I convert a complex applescript into a single line command for the terminal

I have a complex AppleScript that for some reasons has to be executed as a single line command. My Script looks like: tell application "Finder" tell disk "'myDiskName'" open set current view of container window to icon view set toolbar visible of container window to false set statusbar visible of cont...

drupal_execute populating image field

How to populate image field value with drupal_execute. for ex my content type (test) has two additional fields 1. photo (image filed), 2. phid (text field) for phid $form_state['values']['field_phid'][0]['value'] ='14'; . how to populate photo which is image field type ...

Calling script and passing value from called script

I have one script i'm trying to call from another script, passing the information from the script that is being called to the calling script. When i use do or require it runs through but doesnt pass the value. ex. I have the following line at the bottom of the script that i am calling called script.pl print " $hold IS VALUE\n"; wh...

I want to add commands (shell scripts etc.) to Eclpise Package Explorer or Navigator

I'm in desparate need for a functionallity I miss in Eclipse: Right click on a file in Navigator (or a resource in package explorer) and execute a command on it, like "chmod a-w". Google did not bring anything up, likely I use the wrogn search terms. I assume someone must have written a plugin for that ... I'm helping myself right now...

I need to create a new sqlite database with all tables on the fly

Hello, when a user starts my app he can create a new project which means creating a new database with all tables. I do not want to copy the structure of the tables from an older database/older project because in the meantime due to an update of the programm the tables could have changed too... this would lead to chrashes. So with eve...

perl dbi rollback not working

Hello, i am using this approach. If there is an error in the sql, rollback only happens for the first id of the asset_group. Rest of the ids are ignored. Am i doing it the right way? my $sql = "sql batch that update and insert depending on the condition"; $dbh->{RaiseError} = 1; $dbh->{PrintError} = 0; $dbh->{AutoCommit} = 0; m...

security - Process.execute() on android

Given i have compiled linux exe file in my resources/raw directory. Can i execute it using Process.execute("./resources/raw/filename") or i have to have special permissions (like ROOT or smth) ? ...