home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 May
/
PCWorld_2001-05_cd.bin
/
Software
/
Vyzkuste
/
tiptrik
/
tiptrik.exe
/
AltDesktop.vbs
< prev
next >
Wrap
Text File
|
2001-03-04
|
2KB
|
33 lines
set WSHShell = CreateObject("Wscript.Shell")
set env = WSHShell.Environment("PROCESS")
winverz=lcase(env("windir"))
desk1=winverz & "\desktop"
desk2=winverz & "\desktop1"
Color2="032 047 106"
Wallpaper2=winverz & "\WEB\Wallpaper\Paradies.jpg"
Wert = WSHShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Desktop")
wert=lcase(wert)
If Wert = winverz & "\desktop" Then
msgbox "Nastavenφ pro alternativnφ pracovnφ plochu..."
Color1=WSHShell.RegRead("HKCU\Control Panel\Colors\Background")
WSHShell.RegWrite "HKCU\Control Panel\Colors\Backorg", Color1
Wallpaper1=WSHShell.RegRead("HKCU\Control Panel\Desktop\wallpaper")
WSHShell.RegWrite "HKCU\Control Panel\Desktop\wallorg", Wallpaper1
WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Desktop", desk2
WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Desktop", desk2
WSHShell.RegWrite "HKCU\Control Panel\Colors\Background", Color2
WSHShell.RegWrite "HKCU\Control Panel\Desktop\wallpaper", Wallpaper2
Else
msgbox "Nastavenφ pro normßlnφ pracovnφ plochu..."
WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Desktop", desk1
WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Desktop", desk1
Color1=WSHShell.RegRead("HKCU\Control Panel\Colors\Backorg")
WSHShell.RegWrite "HKCU\Control Panel\Colors\Background", Color1
Wallpaper1=WSHShell.RegRead("HKCU\Control Panel\Desktop\wallorg")
WSHShell.RegWrite "HKCU\Control Panel\Desktop\wallpaper", Wallpaper1
End IF
WSHShell.Run("rundll32.exe shell32.dll,SHExitWindowsEx -1")