shellexecute Questions

3

Solved

This is something that's been bothering me a while and there just has to be a solution to this. Every time I call ShellExecute to open an external file (be it a document, executable or a URL) this ...
Natala asked 7/10, 2008 at 8:13

1

Calling ShellExecute seems to remove messages from the Message Queue. The source for a C program to test for this behavior is available below. Note that I'm using ShellExecute to open URLs in the u...
Francklin asked 11/8, 2023 at 15:19

5

Solved

Is it possible to read the following from the local variable in Lua? local t = os.execute("echo 'test'") print(t) I just want to achieve this: whenever os.execute returns any value, I wo...
Sissie asked 12/3, 2012 at 23:10

9

Solved

I'm looking to execute a shell command in Go and get the resulting output as a string in my program. I saw the Rosetta Code version: package main import "fmt" import "exec" func main() { cmd, er...
Armstrong asked 31/5, 2011 at 2:18

5

Solved

I'm looking for the .NET-preferred way of performing the same type of thing that ShellExecute does in Win32 (opening, printing, etc. for arbitrary file types). I've been programming Windows for ov...
Ehling asked 3/11, 2008 at 11:46

2

Solved

I successfully implemented the solution from How does one invoke the Windows Permissions dialog programmatically? and related: How to display file properties dialog security tab from c#. public st...
Regardless asked 27/10, 2022 at 16:59

3

Solved

I have a commandline application coded in delphi that I need to call from a normal desktop application (also coded in delphi). In short, I want to call the commandline app and display the text it o...
Aviles asked 2/2, 2012 at 21:6

4

Solved

I'm trying to use win32api to output a PDF document to a particular printer. win32api.ShellExecute(0, "print", filename, '/d:"%s"' % printername, ".", 0) filename is a full pathname to the file,...
Anathema asked 27/9, 2012 at 17:28

4

I think there are tons of similar posts but I haven't yet found a solution after searching around. Basically, I'm trying to run two scripts in the background. When I run them in the commandline, I...
Unquote asked 8/2, 2011 at 5:14

3

Solved

I am trying to execute a command via bash, for example konanc. In KotlinJVM this would just be using Runtime.getRuntime().exec("..."), or creating a Process using the ProcessBuilder, however, none...
Kokura asked 21/7, 2018 at 23:43

6

Solved

I have a batch file that does a bunch of things and at the end needs to open up a web browser to a page. Is there a way to, in essence, call ShellExecute on a http to open the web page? Windows Co...
Selfrespect asked 6/10, 2014 at 19:59

3

What I Have I am currently writing a program which takes a specified file and the performs some action with it. Currently it opens it, and/or attaches it to an email and mails it to specified addr...
Lupita asked 7/7, 2010 at 18:45

4

Solved

In my program I check for a registry key at startup and if somehow it does not exist I execute the reg file located in the application folder wit the help of ShellExecute command. How can I avoid g...
Tourmaline asked 16/1, 2012 at 8:10

2

As it can be seen from this question we start a new instance of Inno Setup: Instance := ShellExecute(0, '', ExpandConstant('{srcexe}'), Params, '', SW_SHOW); where function ShellExecute(hwnd: HWND...
Zena asked 21/12, 2020 at 7:54

2

I have a custom application written in C++ that controls the resolution and other settings on a monitor connected to an embedded system. Sometimes the system is booted headless and run via VNC, but...
Salena asked 11/1, 2013 at 21:6

4

Solved

I'm running a third party script by using a wrapper class I've written which calls shell_exec() and pipes into a file I parse later using php code. I should mention that this is working, but I am t...
Rabblerousing asked 4/8, 2010 at 17:7

3

Solved

I am trying to write javascript which should run cmd.exe with a specified command line in it like this docs.google.com/file/d/0B7QHCoQDlEvKWUZSX3oxUDI2SDg/edit: I prepare a code after reading shel...
Azevedo asked 17/4, 2012 at 7:16

4

Our company is migrating our help systems over to HTML5 format under Flare. We've also added Topic based access to the help systems using Flare CSHID's on the URI command line for accessing the top...
Enjambment asked 10/10, 2014 at 17:56

3

Solved

I have manages to use ShellExecute in VC++ in order to launch a document. Now I wish to run a command-line tool that receives some arguments, and to run in the background (as hidden, not minimized)...
Broadcloth asked 14/7, 2013 at 10:45

10

Solved

I have a Python script that needs to execute an external program, but for some reason fails. If I have the following script: import os; os.system("C:\\Temp\\a b c\\Notepad.exe"); raw_input(...
Chlorobenzene asked 15/10, 2008 at 8:24

3

Solved

I would like to add a button to my application ( frontend to a service) that will open the service properties dialog (like in services mmc snapin ) for my service. There are numerous examples to o...
Concepcionconcept asked 26/11, 2012 at 13:12

3

Solved

I want to open a *.conf file. I want to open this file with the standard Windows editor (e.g., notepad.exe). I currently have this ShellExecute code: var sPath, conf: String; begin try sPath :...
Chenault asked 5/6, 2013 at 13:37

4

Solved

I have a file that is a bash script that requires SUDO to work. I can run it from the command line using SUDO but I will be prompted to put in the SUDO password. I want to run this script from ph...
Lingenfelter asked 2/7, 2010 at 13:35

8

Solved

I have a renamed js file which I have to call in each of my php pages. Now I want to replace that old name with the new one using shell. what iam using is this: sed -i ’s/old/new/g’ * but this is ...
Gagliardi asked 26/3, 2010 at 11:0

3

Solved

I'm not finding a way to do this in the chrome.* API or even the experimental. It doesn't run through wscript so ActiveXObject("Shell.Application") isn't allowed. I fear that my only option is to...
Bueno asked 12/9, 2010 at 15:52

© 2022 - 2024 — McMap. All rights reserved.