Questions tagged [shellexecute]

ShellExecute is a Win32 API function used to launch document files

ShellExecute is a Microsoft Win32 API function used to launch document files.

Depending on the type of document file, it will do this through:

  • Creating a process using the executable file associated with the specified document
  • Using the COM subsystem to request a shell extension to launch the document
  • Initiating an action to be completed by the end-user, such as a search

As a rule of thumb, it can be assumed that invoking ShellExecute on a document file will have the same result as double-clicking on that file in Windows Explorer, including displaying user interface elements.

521 questions
0
votes
2 answers

run a ruby script from delphi via shellexecute

I've written a little ruby script that lets me send emails by calling it along with some command line parameters. At the command line, this works: ruby.exe mail_it.rb fromaddr="mailaddr1@gmail.com" tolist="mailaddr2@yahoo.com" But try as I may, I…
user119282
  • 337
  • 4
  • 12
0
votes
1 answer

Opening Word document from VB6 in Windows 7/8 issue

I have an old VB6 app that opens an Word document (.doc). It has worked perfectly on Windows XP for a long time. My problem is that when I install the app on Windows 7 or Windows 8, the code will open Word, but not bring up the actual document. …
John Marzion
  • 113
  • 2
  • 6
0
votes
2 answers

Multiple 'cmd.exe' commands in one ShellExecuteEx under Delphi

I'm trying to have multiple commands executed in one ShellExecuteEx. Each command has its own parameters. How do I do this ?
user382591
  • 1,320
  • 5
  • 19
  • 39
0
votes
2 answers

How to give PARAMETERS to batch files .BAT and execute them with System.Shell.execute

I am developing a software for windows and there is a function that I need to “System.Shell.execute” a batch file but I want it to have two functions (parameters) So when I execute: objShell.ShellExecute("file.bat", "PARAMETER1", "", "open", 2); it…
tofran
  • 23
  • 5
0
votes
1 answer

Can ShellExecute run in active session?

I have a command that i need run by cmd.exe when something happens in my program. Let's say the command is "calc.exe". When i use ShellExecute: HWND win = GetActiveWindow(); ShellExecute(win,L"open",L"calc.exe",L"",L"", SW_SHOWNORMAL ); The…
user966890
  • 205
  • 1
  • 7
  • 15
0
votes
1 answer

how to call 2 or more shellexecute functions in a program

I am a beginner in winapi c++ on windows platform, i need to execute 3 exe files,i.e the installation programs, in one single program. i used shellexecute, exec v, system calls but all are exiting the program after the first program installation,…
Paul
  • 39
  • 1
  • 9
0
votes
1 answer

Programmatically opening multiple URLs in default browser

Possible Duplicate: Open link in same browser tab How to do it in such a way that the URLs open in one browser window, each in separate tab? It there a way to do it in general way for all major browsers? Thanks!
Alex Jenter
  • 4,324
  • 4
  • 36
  • 61
0
votes
1 answer

Command won't work with PHP exec() but doing fine if run through prompt

I'm trying to use a SWATH (http://www.cs.cmu.edu/~paisarn/software.html) to work on my project. Basically the program will break down the sentence into set of words. I have everything installed and and try to run the command through the command…
Ittikorn S.
  • 288
  • 4
  • 20
0
votes
2 answers

error executing shell script in PHP

I am trying to execute a shell command via: But it does not give any output. What could be the reason? Although it does not work, the following lines work as expected:
pars
  • 3,700
  • 7
  • 38
  • 57
0
votes
1 answer

Execute console process + redirect w/o console window?

Here is some real code you can run. When you do this you'll notice 5 console windows quickly pop up and disappear. How do i redirect stdout/err without making these windows pop up? I tried a few things and failed so far. For my actual use i'll need…
user34537
0
votes
3 answers

Vista not allowing one .exe to call another .exe

I have a legacy VB6 executable that runs on Vista. This executable shells out another legacy MFC C++ executable. In our early Vista testing, this call would display the typical UAC message to get the user's permission before running the second…
JKueck
  • 279
  • 2
  • 10
0
votes
1 answer

Launching jar via sh script works normally but via crontab gives ClassFormatError

Launching the jar via a java -cp command in an shell scrip eg: RunFileConverter.sh file on linux works without a problem. But, when I try to execute the script via 'crontab -e' it gives me a ClassFormatError. The jar was compiled on Win7 with the…
Jeankes
  • 159
  • 2
  • 4
  • 12
0
votes
1 answer

how to consume a rest web service from SQL Server

I have the following scenario some real basic rest web service mainly, I'm just checking the existence of a single record, it's just a single validation, I'm not moving around hundreds of rows... that should be called from sql 2005, sql 2008...…
opensas
  • 60,462
  • 79
  • 252
  • 386
0
votes
1 answer

How to make a shell call from within a MySQL function or Trigger

I have a table that records positions (gps) and fires insert trigger, where I check if new point is inside or outside of an area, based on the result I need to notify (send email or sms). I am able detect from trigger that i need to send the…
neavilag
  • 609
  • 1
  • 8
  • 20
0
votes
3 answers

Link Checker With ShellExecute?

I've been tasked with going through a database and checking all of the links, on a weekly schedule. I normally work in PHP, but doing this in PHP would be very slow (it actually would timeout the page after about 100 URLs), so I decided to make a…
Cory Dee
  • 2,858
  • 6
  • 40
  • 55