English
Source / code snippets

Shellexecex

 

Findus

CompileMarkSeparation
 $H Windows.ph
 $H Shellapi.ph
 $H Structs.ph
CLS
Var hProcess& = ShellExecEx("Notepad","open",1)
Print "Notepad gestartet"
Print hProcess&
WaitInput
~TerminateProcess(hProcess&,0)
Print "Notepad gekillt"
WaitInput
End

Proc ShellExecEx

    PARAMETERS Pfad$,Command$,Flag&
    Declare ShellExec#,hProcess&
    STRUCT TShellexec = ~SHELLEXECUTEINFO
    Dim Shellexec#,TShellexec
    Shellexec#.cbSize&   = SizeOf(Shellexec#)
    Shellexec#.lpFile& = Addr(Pfad$)
    Shellexec#.lpVerb&  = Addr(Command$)
    Shellexec#.nShow&    = Flag&
    ShellExec#.fMask& = ~SEE_MASK_NOCLOSEPROCESS
    ~ShellExecuteEx(Shellexec#)
    hProcess& = Shellexec#.hProcess&
    Dispose Shellexec#
    Return hProcess&

ENDPROC


The code is of Andreas Miethe.
 
01/04/13  
 



Hi!

Andreas his Surname sounds correctly "Miethe".
 
01/04/13  
 




RGH
and ex XProfan X2.1 becomes it too integrally without API with ShellExec functions:
CompileMarkSeparation
CLS
Var hProcess& = ShellExec("Notepad","open",1)
Print "Notepad gestartet"
Print hProcess&
WaitInput
process("kill",hProcess&,0)
Print "Notepad gekillt"
WaitInput
a>

Greeting
Roland
 
XProfan X2
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
01/04/13  
 



Perhaps. here another älterer Info: [...] 

... and vlt. can You as opt. Param a Own SHELLEXECUTEINFO ( [...]  ) make possible.
 
01/04/13  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.913 Views

Untitledvor 0 min.
Gast.081510/03/24
Erhard Wirth06/14/24
Axel Berse08/13/23
Andreas Koch11/09/22
More...

Themeninformationen

this Topic has 3 subscriber:

iF (2x)
RGH (1x)
Findus (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie