Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
825 connectés 

  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  VBScript wallpaper

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

VBScript wallpaper

n°1604860
DavidUL
Posté le 28-08-2007 à 09:39:57  profilanswer
 

:hello: bonjour
 
je cherche à faire un script VBS qui changerait le fond d'écran à l'ouverture de session. Quelqu'un aurait-il ça svp ?

mood
Publicité
Posté le 28-08-2007 à 09:39:57  profilanswer
 

n°1604867
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 28-08-2007 à 09:44:04  profilanswer
 

en admettant que ton fond d'écran se nomme "pic.bmp"

Code :
  1. Dim WshShell
  2. Set WshShell = WScript.CreateObject("Wscript.Shell" )
  3. WshShell.RegWrite "HKCU\Control Panel\Desktop\Wallpaper", pic.bmp
  4. WshShell.Run  "%windir%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters", 1, False
  5. Set WshShell = Nothing
 

fait à l'arrache, ça devrait marcher


Message édité par Harkonnen le 28-08-2007 à 09:44:37
n°1605138
DavidUL
Posté le 28-08-2007 à 12:10:59  profilanswer
 

:hello:  
 
je vais essayer mais pic.bmp il doit être dans C:\WINDOWS\Web\Wallpaper ?

n°1605230
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 28-08-2007 à 14:29:39  profilanswer
 

non, pic.bmp doit comporter la totalité du chemin vers ton image


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  VBScript wallpaper

 

Sujets relatifs
VBScript: erreur 800A004C path not found sur win2k3, ok sous win xpLancer du VBA depuis du VBScript
Script VBscript qui ne fonctionne pasInstallation d'une imprimante via vbscript
création formulaire par programmation en VBScript/HTAConexion LDAP vbscript dans une page html
[VBSCRIPT] nombre ?Images en VBScript
Probleme avec gestion des erreurs en vbscriptinternet + VBScript
Plus de sujets relatifs à : VBScript wallpaper


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR