Bonjour, j'aimerai bien envoyer et executer des VBS via WAPT
Par exemple pour changer de PROXY ...
dim oShell set oShell = Wscript.CreateObject("Wscript.Shell")
oShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 1, "REG_DWORD" oShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer", "http=172.18.100.1:3128;https=172.18.100.1:3128;ftp= 172.18.100.1:3128", "REG_SZ"
Mais aussi pour coller des raccourcies sur le bureau ...
Est ce jouables ?
Merci d'avance !!
Je ne connais pas le vbs... Ce script apparemment doit s'exécuter dans le contexte utilisateur (clé registre Current User...) donc pas dans la procédure install du paquet mais dans la section session_setup. mais en python directement dans un paquet wapt (c'est fait pour ça !) :
# -*- coding: utf-8 -*- from setuphelpers import *
uninstallkey = []
def install(): pass
def session_setup(): registry_setstring(HKEY_CURRENT_USER,r'Software\Microsoft\Windows\CurrentVersion\Internet Settings','ProxyEnable', 1,REG_DWORD) registry_setstring(HKEY_CURRENT_USER,r'Software\Microsoft\Windows\CurrentVersion\Internet Settings','ProxyServer','http=172.18.100.1:3128;https=172.18.100.1:3128;ftp=172.18.100.1:3128') create_desktop_shortcut('Un raccourci','http://www.google.fr')
Hubert
Le 22/09/2015 17:35, Thomas Angot a écrit :
Bonjour, j'aimerai bien envoyer et executer des VBS via WAPT
Par exemple pour changer de PROXY ...
dim oShell set oShell = Wscript.CreateObject("Wscript.Shell")
oShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 1, "REG_DWORD" oShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer", "http=172.18.100.1:3128;https=172.18.100.1:3128;ftp=172.18.100.1:3128 http://172.18.100.1:3128", "REG_SZ"
Mais aussi pour coller des raccourcies sur le bureau ...
Est ce jouables ?
Merci d'avance !!
WAPT mailing list WAPT@lists.tranquil.it http://lists.tranquil.it/listinfo/wapt