execute

External program blocks when run by Runtime exec

Hi I'm attempting to launch an instance of the VideoLAN program from within a java application. One of the ways I've tried to do this is shown here: Process p = Runtime.getRuntime().exec("\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" \"http://www.dr.dk/Forms/Published/PlaylistGen.aspx?qid=1316859&odp=true\" :sout=#std{access=udp,mu...

pdo Invalid parameter number

Hello, My problem is the following Y have two functions that are called from inside a function(method) If the outcome of the first function is TRUE, the second function runs a select and an update query. The second function runs a select with the query($sql) command The update query uses: $stmt = $db->prepare($sql); $stmt->execut...

Script to open executables and snap to top left hand corner of desktop

Hi guys I was just wonderin' in a .bat file, if there was a way to call an external .bat file, or even an *.exe and make it open so it 'snaps' to the top left hand corner of the screen ? Cheers ...

SQL Server 2000 - View list of sprocs with GRANT EXECUTE for a particular role exclusively ?

There are approx 500 sprocs in my SQLSERVER 2000 database; each sproc has a typical Grant Execute statement similar to the following. GRANT EXECUTE ON [dbo].[sproc_name] TO [role1], [role2], [role3], [role4], etc... How to view the names of the sprocs which have grant to a particular role and only that particular role exclusively...

Execute process conditionally in Windows PowerShell (e.g. the && and || operators in Bash)

I'm wondering if anybody knows of a way to conditionally execute a program depending on the exit success/failure of the previous program. Is there any way for me to execute a program2 immediately after program1 if program1 exits successfully without testing the LASTEXITCODE variable? I tried the -band and -and operators to no avail, th...

Executing a Number of Classes Java

Hi Currently I have a folder with 6 classes. The main class being called "Interaction". I compile all the classes by using javac *.java How do I run the program? When I type "java Interaction" I get errors as the other classes are not being loaded. Its as if I need to link the other 4 classes into the main class. How do I do this? Im...

Help with the ffmpeg

I can read now the last line from the FFmpeg procees executed in a cmd window. with this source using Scripting host model object reference. Private Sub Command1_Click() Dim oExec As WshExec Dim sRow As String With New WshShell Set oExec = .Exec("ffmpeg.exe") End With Do While oExec.Status = Wsh...

list of exec (related) Windows API calls

hi, I try to create a big (let's not call it complete :) list of all exec-"able" api functions on windows. please help to extend it. ShellExecute(), ShellExecuteA(), ShellExecuteW() CreateProcess(), CreateProcessA(), CreateProcessW() WinExec(), WinExecA(), WinExecW() CreateProcessAsUser(), CreateProcessAsUserA(), CreateProcessAsUserW...

PHP - Execute an external command, but by passing an array, one for programme name, then arg1, then arg2, etc...

I have a PHP script that needs to execute programmes that will work on files that have spaces in the names. Most PHP functions for executing external commands (e.g. exec()) take an 1 string argument for the command line to execute. However then you have to do things like escapeshellarg() to make your input safe. Is there some way to exe...

how to write where condition in fql facebook using asp.net?

Hi all, I need to execute a fql using facebook dll in asp.net. The fql is ="select name, profile_url from user where name = 'suresh'". When I execute this i could not get the response . I am getting only empty string. string response = fbService.fql.query("select name, profile_url from user where name = 'suresh'"); but if i search by...

fql.query method returns empty string in asp.net

Hi, I have developed a web application 3 months ago to show facebook users by searching username. To access facebook, I have downloaded facebook dll and got application key, and secret key from facebook. My web application was working fine and displaying records from facebook. yesterday onwards, my application is not working fine. I c...

Execute SQL Script within Solution Explorer in VS 2008 Professional

Does anybody know how I can execute a .sql file from within solution explorer in VS 2008 Professional? I know you can do this in VS 2005 but cannot find this feature in VS 2008 professional ...

Cron job, execute php script

Hello I want to run a php script every morning, the script would send a mail. But the mail I get from cron always contains an error message. Can anybody help? ...

What is this JavaScript construct: " = [y for each ...]"

myColl.y = [y for each (y in myColl.y) if (y != myThing.getY())]; I understand what this is doing, returning all the 'y' items that are not the current one... But, what is the concept called here with the brackets? I would like to read up on what this is , syntax, etc. ...

How to execute some code when a file is modified using python?

Hello, I want to execute one funtion each time a file gets written with new data (gets modified) and I'm using Python. How can I do it? Thanks in advance! :) ...

WordPress execute query

which method we are using for execute query in wordpress ...

How can I execute a shell command using VBA?

Hello, I want to execute the shell command: "C:\Temp\gc.exe 1" but I want to do it using Visual Basic for Applications. How can I do it? Thanks in advance! ...

How to open html file in default browser from Java Swing application?

My Java Swing application generates html file and I want to open it with default browser when it is generated and saved. How to achieve that? ...

SAS V9.1.3 - Error when combining %INC and CALL EXECUTE

Hi, I am getting a resolution error with some SAS v9.1.3 code. Here is some code I want to store in a .txt file (called problem2.txt) and bring into SAS with a %INC %macro email020; %if &email = 1 %then %do; %put THIS RESOLVED AT 1; %end; %else %if &email = 2 %the...

Get paths of all applications in the registry

string registryKey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"; using (Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(registryKey)) { (from a in key.GetSubKeyNames() let r = key.OpenSubKey(a) select new { A...