# -*- coding: iso-8859-1 -*- #. // _by_ShellExecute.py from win32api import ShellExecute #. // Effectue une opération sur un fichier spécifié. def by_ShellExecute( xHorCom, cOp = None, cFile = None, cPara = None, cDir = None, nShow = 1 ): if type( xHorCom ) is str: ShellExecute( None, "open", xHorCom, None, None, 1 ) else: ShellExecute( xHorCom, cOp, cFile, cPara, cDir, nShow ) #. endif return 0 ''' Dernière modification : 2022-02-02 Harbour : wapi_ShellExecute() dBasePlus : bd_ShellExecute() outil fabriqué. [Exemple] import sys sys.path.append( "modules" ) from _by_ShellExecute import by_ShellExecute # // Effectue une opération sur un fichier spécifié. by_ShellExecute( "Test.py" ) by_ShellExecute( None, "open", "Notepad.exe" ) by_ShellExecute( None, "runas", "Notepad.exe" ) [/Exemple] '''