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
1 answer

Not all java commands to unix shell are running

I am writing an application that sends commands to a unix shell. I am not ever having any troubles with issuing cp and chmod commands (that i know of) but for some reason mv commands will not actually move the files i spedify? My code can be show…
Kamron K.
  • 594
  • 1
  • 10
  • 18
0
votes
1 answer

How can I create and show multiple e-mail messages of arbitrary length simultaneously?

I have been using ShellExecute to generate 5 or 6 emails in one go using the Windows default mail client: ShellExecute(Self.Handle, nil, Pchar(email), nil, nil, SW_NORMAL); This then allows the user to decide if they want to send them or not. The…
colin
  • 2,983
  • 6
  • 41
  • 49
0
votes
1 answer

Delphi 5 WriteLn to Console AND Text File

I have made an console application (A) which runs independently every day to download files and uses WriteLn('text') to display progress in the console. I then have another GUI application (B) which displays that data in tables, but can also call…
notidaho
  • 588
  • 8
  • 28
0
votes
1 answer

About Com object in php

How can I Create a power point file MS word file using com object. Please give some example for that.I tried with few things .But i Can't find the file in my system The sample code is given below $word = new COM("word.application") or die…
FlexiDev
  • 1
  • 2
0
votes
1 answer

Limited CPU load in external program executed from c++ application

My application written in Visual C++ executes an external program with system function call. A system command is a call of stereoscopic player instance with certain stereo 3D video file and fullscreen mode passed as parameters. The problem is that…
Andrey Pesoshin
  • 1,136
  • 1
  • 14
  • 30
0
votes
1 answer

Shell script showing errors while executing in Linux

SCRIPT : IMAGE=$imgvalue; if [ $imgvalue :=1 ] then echo DO=ABC; elif [ $imgvalue :=2 ] then echo DO=ETC; elif [ $imgvalue :=3 ] then echo DO=XYZ; else echo "$imgvalue is unsupported"; exit 1; fi In the script above, IMAGE=1,…
0
votes
1 answer

Parse String to Token, Export and Dynamically Echo Values

Environment : KornShell (ksh) I am exporting variables using: eval $(echo '"EffTimeStamp=20110203-210000#InputCtxNm=Forigen Exchange Today#RunType=EOD"' | sed 's/^"/export /g;s/=/="/g;s/#/"\nexport /g') And trying to display values of these…
James Bond
  • 2,825
  • 2
  • 15
  • 11
-1
votes
2 answers

How to tell if a path points to an application in Windows

If I have a file path (that might be later passed to the ShellExecute API) is there any way to tell if it points to an application? I need this to work under Windows from a C++ program. Also, this path may contain start-up command line parameters.
ahmd0
  • 16,633
  • 33
  • 137
  • 233
-1
votes
3 answers

Use ShellExecute to run icacls with multiple parameters

I am trying to execute icacls from c++. Code below does nothing. I still don't know why it does nothing. I cannot see what icacls return to me because cmd windows automactly closes. HINSTANCE also doesnt provides me much. How i can use icacls with…
user1042321
  • 45
  • 1
  • 9
-1
votes
1 answer

How to programmatically change browser URL

In my C++ Windows application I use ShellExecute to open a remote PDF file in the internet browser at a certain PDF Destination (dynamic bookmarks provided by Adobe Acrobat Reader): ShellExecute(NULL, "open",…
-1
votes
1 answer

Start a process in custom desktop with ShellExecute call

I am working on a feasibility task, where I need to start an application in a custom desktop (programmatically created desktop, using CreateDesktop()). Scenario: ConsoleTestApplication: Use ShellExecute() to start an MFC application,…
-1
votes
2 answers

Run Windows Explorer beside my application with a specified Bounds

I have this: ShellExecute(Application.Handle, nil, PWideChar('explorer.exe'), PWideChar(ImagesDir), nil, SW_SHOWNORMAL); where the variable ImagesDir is the directory of Images that I want to show by the Windows Explorer... How can I run the…
Pedro
  • 1
  • 3
-1
votes
1 answer

Launching an APP from volume ID

I'm trying to launch an .exe file in windows using and a volume ID. The volume do not have a letter. Here is what I've tryed. ShellExecute When I call ShellExecute with the volume ID, Windows' explorer open the correct directory. Same thing if I try…
-1
votes
2 answers

getting a "parse error before ','" on line 7

Trying to make a simple program that open a webpage when executed but I'm getting a parse error, and I don't know why. #include #include bool open_browser() { HINSTANCE result = ShellExecuteA( HWND, "open",…
AynonT
  • 225
  • 5
  • 13
-1
votes
2 answers

Delphi + MySQL command line

I'm building a tool using Delphi and MySQL to restore a script generated with MySQLDump. It was supposed to load and execute a SQL file and log any possible errors into a given output file. I thought about execute the mysql command line and send…
luix10
  • 49
  • 8