Page 1 of 1 1
Topic Options
#10850 - 2001-07-25 01:47 PM background
Anonymous
Unregistered


This is a part of my script that all persolel wel get when they log in. I have the folowing problem!
When people log in the background will be copyd to the pc, but it does this every time we log in. Is there a way to copy this only ones, and just check if there is a new one.

The second problem is that the background will not be set if the people doesent have a background selected. How do I set the background?

".";* 11 Copier de achtergrond naar lokale pc.
If Exist ("%WINDIR%\kantoor.bmp") = 0
".";* Copier de achtergrond.
Copy "\\Poly1\Netlogon\*.bmp" "%WINDIR%"
Endif

".";* 12 Set wallpaper
If SetWallPaper ("kantoor.bmp") = 0
".";* Plaats achtergrond
SetWallPaper ("kantoor.bmp")
Endif

I hope seome one can help me.

Oscar

Top
#10851 - 2001-07-25 02:00 PM Re: background
Anonymous
Unregistered


One for you Lonkero,
I have seen the code today for this on the board but I have to go meeting now , If no replies I will look later


Steve

Top
#10852 - 2001-07-25 04:03 PM Re: background
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well. something like this might help.
use the filename specified in the logonscript (ofcourse you can change the script too). so you only need to replace the file in the netlogon share with that name to make it bg in every client.

code:

if 0<>comparefiletimes("\\Poly1\Netlogon\clientbg.bmp","%windir%\clientbg.bmp")
copy "\\Poly1\Netlogon\clientbg.bmp" "%windir%\clientbg.bmp"
$ = writevalue("HKEY_CURRENT_USER\Control Panel\Desktop","Wallpaper","%windir%\clientbg.bmp","REG_SZ") ;here it makes the bg show up.

it does not copy it if the picture is same. but it checks for the modification time to see if the files are the same. if either one can't be opened it also copies, so it makes sure that there is allways bg in windir.
the last line copies to the registry and shows up the picture.

cheers,

[ 25 July 2001: Message edited by: Lonkero ]

_________________________
!

download KiXnet

Top
#10853 - 2001-07-26 05:48 PM Re: background
Anonymous
Unregistered


Dear people, Thanks for the answer but it doesnt work. It copy's and sets the wallpaper to kantoor.bmp but it is not on the screen? How can we fix that, i working under NT4

Regards Oscar

Top
#10854 - 2001-07-26 05:53 PM Re: background
Anonymous
Unregistered


He guys, sorry but I found it. I forgot to wright the Endif line.

SORRY but thanks.

Oscar

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2011 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.051 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org