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
upd...
In my application I can programmatically open explorer and select a file using the following code:
void BrowseToFile(LPCTSTR filename)
{
CString strArgs;
strArgs = _T("/select,\"");
strArgs += filename;
strArgs += _T("\"");
ShellExecute(0, _T("open"), _T("explorer.exe"), strArgs, 0, SW_NORMAL);
}
My problem is t...
If there exist a directory,
/backup/
And the files in it are a.gz b.gz c.gz
And another directory /backup-directorybackup
And the files in it are a.gz
I need a shells script to compare two directories if the files are present then ignore it and if the filesare not present copy it to the destination directory
Thanks..
...
i use to create a custom function like winexec(...):Hwnd that will retun the handle of executed application.
i did use the findwindow() but having problem if it change window caption.
...
I am trying to launch explorer programmatically from my .Net CF Window application. But its throwing win32 exception. I have used same kind of code in desktop .Net version, and it always worked.
(I am using Windows CE 5 and .Net CF 3.5 )
Following code throws Win32 Exception,
Process.Start("\\", null);
Unfortunately, i am using the c...
I'm using Windows 7 (x64) and Delphi 2010.
I'm writing a component that will emulate the start menu. However, I've run into the following problems:
If I attempt to open a shortcut (.lnk file) with ShellExecute, this will fail whenever %ProgramFiles% is part of the target path of the shortcut (it will then look at the C:\Program Files ...
I use the ShellExecute command to run an exe file which gets an input text file and returns an output text file. I've written it like this:
ShellExecute(mainFormHandle, 'open', 'Test.exe',
'input.txt output.txt', nil, sw_shownormal);
//Read the output file...
S_List.LoadFromFile('output.txt');
Writeln(S_List[0])
I provide the inp...
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 php via shell_exec but I if I call SUDO, its not like a command line where I can be prompted for the password. Is there a way to pass the passwo...
I am trying to print pdf, ppt, and word documents from my windows service using ShellExecute.
Process printingProcess = new Process
{
StartInfo =
{
FileName = filePath,
WindowStyle ...
Synopsis:
I am trying to convert a shell script from UNIX to Powershell.
The script cannot "hardcode" the path, but must instead list a directory to dynamically build the path at runtime.
Also, the script must pass in 1 parameter to indicate the "type" of the run.
I am placing my "attempted" re-write of the script (after much googling/...
I am working on Windows server and able to run command from command prompt
c:> %convertxls% {some args....}
But when I run same command from php script
*shell_exec(%convertxls% ..... 2>&1);*
it gives me error as
%convertxls% is not recognized as an internal or external command, operable program or batch file.
I think when I ...
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 trying to enhance the functionality, having encountered a use case I hadn't thought of.
How is it best to manage timeout on shell_exec()? I wa...
Hello,
I have a unix command written in a file and I need PHP to read it and execute it. The reason it needs to be read from a file is because the commands symbols mess up the script when put them directly in it. So far I have this:
<?php
$command = readfile("http://localhost/command.txt");
echo shell_exec($command);
?>
Upon running...
Hello minds,I have a piece of code where if I run a particular application,it will hook its
process and injects my dll into the process space of that application.I will explain my problem with an example..Atfirst if I run MyApplication.exe,my code will hook the process of MyApplication.exe and inject MyDll.dll into MyApplication.exe proc...
Hey everybody,
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...
I want to use shell executable in order to respect user preferences of application to be started, but I also need to know when that particular application is closed.
Process editProcess = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = filename;
startInfo.Verb = "edit";
startInfo.UseShellExecute ...
OK first of all, I am a PHP programmer but I have never done anything with CGI and don't know what it is. I know it stands for Common Gateway Interface, but I do not know what it does or what its for.
I was just told that I can upload a shell script to my cgi-bin folder and execute it.
I made a shell script myscript.sh and uploaded it ...
Hi everyone,
I'm trying to execute a .bat file in VB6 (silent window mode) with following code.
Set WshShell = CreateObject("WScript.Shell")
cmds = WshShell.RUN("E:\My Folder\RunScript.bat", 0, True)
Set WshShell = Nothing
Things work absolutely fine if there's no space in 'My Folder'.but call fails if such a space is encountered. ...
Hi,
I'm running my own kiosk application as the shell (replacing HKLM/Software/Microsoft/Windows NT/winlogon/shell).
The application needs to be able to turn off the monitor and I was using Process.Start("scrnsave.scr") to do this. It works on my dev machine but not when the shell is replaced.
It's clearly because the UseShellExecute ...
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 build a dll with NPAPI but I wanted to see if there was a simpler way.
...