Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

shell.Run commande, show, True

2 réponses
Avatar
Jean Pierre Daviau
Bonjour à tous et à tous(tes),

commande=shell.ExpandEnvironmentStrings("%windir%\notepad.exe" & nomtxt &
chr(34))
shell.Run commande, show, True

Si je tente d'utiliser un autre éditeur de texte cela ne fonctionne pas: Ex:


commande=shell.ExpandEnvironmentStrings("%ProgramFiles(x86)%\EditPlus
3\editplus.exe " & "-e " & chr(34) & nomtxt & chr(34))
commande=shell.ExpandEnvironmentStrings("C:\Program Files (x86)\EditPlus
3\editplus.exe " & "-e " & chr(34) & nomtxt & chr(34))



Cordialement,


Jean Pierre Daviau

-------
HP Pavilion Elite m9525f Desktop PC
Vista Édition Familiale Premium SP1 64 bits

2 réponses

Avatar
Gilles LAURENT [MVP]
"Jean Pierre Daviau" a écrit dans le
message de
news:
| Bonjour à tous et à tous(tes),

Bonjour,

| commande=shell.ExpandEnvironmentStrings("%windir%notepad.exe" &
| nomtxt & chr(34))
| shell.Run commande, show, True
|
| Si je tente d'utiliser un autre éditeur de texte cela ne fonctionne
| pas: Ex:
|
| commande=shell.ExpandEnvironmentStrings("%ProgramFiles(x86)%EditPlus
| 3editplus.exe " & "-e " & chr(34) & nomtxt & chr(34))
| commande=shell.ExpandEnvironmentStrings("C:Program Files
| (x86)EditPlus 3editplus.exe " & "-e " & chr(34) & nomtxt &
| chr(34))

commande= _
Chr(34) & "%ProgramFiles(x86)%EditPlus 3editplus.exe" & Chr(34) & _
" -e " & _
Chr(34) & nomtxt & Chr(34)

La méthode Run de l'objet shell effectue la résolution des variables
shell.Run commande, Show, True

--
Gilles LAURENT
MVP Windows Server - Admin Frameworks
http://glsft.free.fr
Avatar
Jean Pierre Daviau
> commande= _
Chr(34) & "%ProgramFiles(x86)%EditPlus 3editplus.exe" & Chr(34) & _
" -e " & _
Chr(34) & nomtxt & Chr(34)

La méthode Run de l'objet shell effectue la résolution des variables
shell.Run commande, Show, True



Merci Laurent.