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
-2
votes
2 answers

Requests for administrator privileges for driver installation in Delphi

I want to install the Microsoft SQL Server Native Client in a self-written installer. The database driver is to be installed once on first launch. My problem is that on some computers, the driver installation is not performed if my program is not…
-2
votes
1 answer

ShellExecuteEx not working like I expect it to do

I use the folowing function to start MS Word and open a file. This is done OK but the Word app is not maximized on top of my application. Is that not possible to add to my function? function TFiles.ExecuteAndWait(const aFile: string; aParam: string…
OZ8HP
  • 1,443
  • 4
  • 31
  • 61
-2
votes
1 answer

shellExecute "File Not Found Error" with image files that contain unicode characters

I have a method that uses ShellExecute to open files passed in by the user. It is written to accept file names with unicode characters. It works with txt and pdf documents, but when I test with an image file that contains an unicode character, I get…
Amber
  • 17
  • 1
-2
votes
2 answers

GoDaddy Cron Job issue with Shell and Perl Script

i created a Cron Job on my GoDaddy Server, named "SponUpdate.sh" here is the code for this file #!/bin/bash /usr/bin/perl /home/content/14/5959214/html/cgi/JLLoadSponFRJ.pl /usr/bin/perl…
Shabi
  • 13
  • 4
-3
votes
1 answer

Some problems about ShellExecute function

I want to invoke a command like this: I am using this code: std::string szArg = " -i " + m_strSign; wstringstream wss; wss<
bai
  • 366
  • 2
  • 9
-4
votes
2 answers

Executing Executables In Memory With Powershell

I have an executable on an internet page and I want to be able to run it without saving it to the local disk using powershell. It should basically function like iex but run an executable that's already in the memory and stored in some kind of…
Muhammed Özen
  • 33
  • 1
  • 2
  • 6
-4
votes
2 answers

How to append obtained char values in a loop into a String, to pass it to ShellExecute()?

If the variable 'S' is inside a for loop, which stores the char value of the Binary value inputted by the user, how to append all the characters to form a String which I can pass to a ShellExecute() fucntion. char *u="https://google.com";…
user58736
  • 9
  • 8
-4
votes
3 answers

Why else if (a != 65) is not executing?

#include #include using namespace std; void noret() { for (int i = 1; i < 11; i++) { cout << "Line number : " << i << endl; } system("pause"); } void StartProgram(string filename) { …
smartonion
  • 35
  • 4
-4
votes
1 answer

Export function of ShellExection to DLL delphi

How do I export this function ExecuteFile from ShellExecute to a DLL. It does not work if I call via DLL. However if I use ShellExecution directly in the project it works procedure ExecuteFile(FileName:WideString);stdcall; begin …
André
  • 93
  • 1
  • 1
  • 9
-4
votes
1 answer

C++, how to modify program under execution with new arguments

The original code i posted has been edited, as it seems it caused confusion. I know it was wrong but i only wanted to use it as an example. Code i want to work with is this one: https://github.com/SFML/SFML/wiki/Source:-AnimatedSprite You can just…
Maiser
  • 65
  • 1
  • 10
-5
votes
2 answers

Need some explanations on this Delphi code

I have this code and need some explanation on these questions: What is that trailing "_TLB" after "ShellExecHookXample" in first uses section? How should I use this code in Delphi 7 and make stand-alone exe file? (I don't know what's the proper…
silvercover
  • 161
  • 1
  • 3
  • 11
1 2 3
34
35