shell.Run commande, show, True
Le
Jean Pierre Daviau

Bonjour à tous et à tous(tes),
commande=shell.ExpandEnvironmentStrings("%windir%otepad.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))
Cordialement,
Jean Pierre Daviau
-
HP Pavilion Elite m9525f Desktop PC
Vista Édition Familiale Premium SP1 64 bits
commande=shell.ExpandEnvironmentStrings("%windir%otepad.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))
Cordialement,
Jean Pierre Daviau
-
HP Pavilion Elite m9525f Desktop PC
Vista Édition Familiale Premium SP1 64 bits
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
Merci Laurent.