Aide:ShellExecute.txt

De Wiki AutoIt Français
Aller à : navigation, rechercher

Document original V3.3.6.1 :

###Function###
ShellExecute

###Description###
Runs an external program using the ShellExecute API.

###Syntax###
ShellExecute ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] )


###Parameters###
@@ParamTable@@
filename
	The name of the file to run (EXE, .txt, .lnk, etc).
parameters
	[optional] Any parameters for the program. Blank ("") uses none.
workingdir
	[optional] The working directory. Blank ("") uses the current working directory.
verb
	[optional] The "verb" to use, common verbs include:
	  open = Opens the file specified. The file can be an executable file, a document file, or a folder
	  edit = Launches an editor and opens the document for editing. If "filename" is not a document file, the function will fail
	  print = Prints the document file specified. If "filename" is not a document file, the function will fail
	  properties = Displays the file or folder's properties
	  <b>See remarks for more information on the default behavior when a verb is not specified.</b>
showflag
	[optional] The "show" flag of the executed program:
	  @SW_HIDE = Hidden window
	  @SW_MINIMIZE = Minimized window
	  @SW_MAXIMIZE = Maximized window
@@End@@


###ReturnValue###
@@ReturnTable@@
Success:	Returns 1.
Failure:	Returns 0 and sets @error to non-zero.
@@End@@


###Remarks###
After running the requested program the script continues.  To pause execution of the script until the spawned program has finished use the ShellExecuteWait function instead.

When no verb is specified the default verb is used.  The default verb is the verb configured in the registry.  If no verb is set as default in the registry then the "open" verb is used.  If the "open" verb is not present then the first verb listed in the registry is used (except on Windows 2000).

###Related###
ShellExecuteWait, Run, RunWait, RunAs, RunAsWait


###Example###
@@IncludeExample@@


Document traduit V3.3.6.1 :

Texte en Français


Traducteur :

Contributeurs (pour les modifications avant le Wiki) :