shellexecute

Specific Properties Tab using ShellExecute Properties Verb

◇◆丶佛笑我妖孽 提交于 2019-12-11 02:53:17
问题 Is there any way to open to a specific tab in properties using ShellExecute's Properties Verb? Is there any way to do it at all? (Doesn't have to be ShellExecute, but can't find much that will display a file's "properties window") (Mimicking the behavior of Right-clicking a file, selecting properties, and clicking on the Details tab) 回答1: I was able to find a solution. The following answers written in C# were very helpful: How do I display a file's Properties dialog from C#? How does one

How to open webpage in HIDDEN default browser? DELPHI

廉价感情. 提交于 2019-12-11 02:08:07
问题 I have been trying to open a hidden default browser from delphi but coulnd't. I tried ShellExecute(self.WindowHandle,'open','www.google.com',nil,nil, SW_HIDE); and I get my chrome browser open but not hidden, and it opens a tab not a new window, also tried with TStartupInfo with the same results. Is there another way to achieve this? 来源: https://stackoverflow.com/questions/2834597/how-to-open-webpage-in-hidden-default-browser-delphi

Send multiples Images to printer - C++

依然范特西╮ 提交于 2019-12-11 01:50:15
问题 I have a folder with .jpg files I want to send all this images to a printer. I tried with ShellExecute, with two files : UnicodeString filePath1 = "something1.jpg"; UnicodeString filePath2 = "something2.jpg"; UnicodeString cmd = "print"; ShellExecute(Form1->Handle, cmd.c_str(), filePath1.c_str(), NULL, NULL, SW_SHOWNORMAL); ShellExecute(Form1->Handle, cmd.c_str(), filePath2.c_str(), NULL, NULL, SW_SHOWNORMAL); But 2 instances of the Windows printer are created. One for each file. I would like

Run command line program silently with c# on wince

微笑、不失礼 提交于 2019-12-11 01:45:35
问题 I once again need some help. I'm using the .net Compact Framework and the programming language C# to develop for mobile devices that are running WinCE 5.0. What I want to accomplish is to programmatically mount a network drive. To do so, the app runs the following code in a background thread: ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = "net"; startInfo.UseShellExecute = false; startInfo.Arguments = @"use logs \\server\logs /user:dom\uname /password:pw"; Process p

call to shellexecte causes antivirus to give a warning?

跟風遠走 提交于 2019-12-10 23:13:23
问题 when ever i write the following line of code any where in any app i program with delphi ShellExecute(self.WindowHandle,'open','www.yahoo.com',nil,nil, SW_SHOWNORMAL); kaspersky 2010 beeps this message ''behavior similar to pdm.hidden data sending. detected'' why is that and how do i get rid of this note: i am using delphi 2007 update :sorry for not clearifing, when ever i RUN my program av gives me this error 回答1: Send your application to Kaspersky lab, marking your request with "false

Clickonce program will not start when launched from shell_execute

徘徊边缘 提交于 2019-12-10 20:55:46
问题 I have a very old program that I have no control over. It launches a filetype with its default application like this(I cannot modify this code): LET Err (SHELL_EXECUTE 'open' (FIX_MESG '"{1}"' File_name) '' '') ^^The above code works, so long as that filetype isn't associated with a ClickOnce program. The old program is 32 bit, the OS is Windows 7 64 bit. I can compile my clickonce program as anything, but none seem to work. (I've tried x86, x64 and anyCPU) How can I make a 32 bit program use

shell_exec does not run in the background, any other solution?

大兔子大兔子 提交于 2019-12-10 15:17:50
问题 i'm using php in apache on CentOS. i'm need to serve users, that they can delete big files by click. trying to use shell_exec. but its not run in the background. it runs and make the user wait. my command : $D_command="rm -rf videos/'$Mdelete'"; shell_exec($D_command); thanks! 回答1: ass & at the end of the command. $D_command="nohup rm -rf videos/'$Mdelete' > /log/deletedfile.log 2>&1 &"; 回答2: $PID = shell_exec("nohup $Command 2> /dev/null & echo $!"); http://php.net/manual/en/function.shell

How to programmatically open Run c++?

旧时模样 提交于 2019-12-10 13:57:55
问题 the question is how to open Run programmatically from c++? I know that have some function that can replace that, like shellexec, winexec but for some task I need just Run dialog to appear. 回答1: The Run Dialog is located in shell32.dll using the function RunFileDlg . One way show the dialog is to use rundll32.exe to invoke that function. Execute the following command using the CreateProcess Win32 API: rundll32.exe shell32.dll,#61 (where #61 is the ordinal number of the RunFileDlg function).

Java + JNA, looking for a way to run ShellExecuteW

穿精又带淫゛_ 提交于 2019-12-10 10:24:20
问题 I am trying to run a ShellExecute function from java with JNA. I dont have any problems running ShellExecuteA on non-unicode folders import com.sun.jna.*; import com.sun.jna.platform.win32.ShellAPI; import com.sun.jna.platform.win32.WinDef; import com.sun.jna.win32.*; public class Main { public interface Shell32 extends ShellAPI, StdCallLibrary { Shell32 INSTANCE = (Shell32)Native.loadLibrary("shell32", Shell32.class); WinDef.HINSTANCE ShellExecuteA(WinDef.HWND hwnd, String lpOperation,

Can one detect how .exe was launched?

百般思念 提交于 2019-12-10 10:04:14
问题 I want to be able to detect whether a given exe was shellex'd programmatically or if it was entered and executed interactively in, say, CMD.EXE. Is there anything about the way an exe is launched that indicates the mechanism that was used to launch it? Context: Windows XP, Visual Studio 6 languages. 回答1: There might be an easier way, but the only way I can think of is to check the parent process name, which involves a few steps: Get the ID of the parent process. Get the handle of the process,