Page 1 of 1 1
Topic Options
#17252 - 2002-02-08 01:30 PM Standardised Desktops
Darren_W Offline
Hey THIS is FUN
*****

Registered: 2001-10-10
Posts: 208
Loc: Bristol, England
Hi,

I would like to know if it is possible to compare two directories in my case a standard desktop held on the server and Local desktop in the c:\windows on windows 9x.

I would like it to clear of any shortcuts put on by users, leave ones that should be there, and add any that are missing.

I don't want to turn profiles on or use policies.

Bye

Darren

_________________________
I want to share something with you - the three sentences that will get you through life.
Number 1, 'cover for me.'
Number 2, 'oh, good idea, boss.'
Number 3, 'it was like that when I got here'.

Top
#17253 - 2002-02-08 02:19 PM Re: Standardised Desktops
Will Hetrick Offline
Hey THIS is FUN

Registered: 2001-10-02
Posts: 320
Loc: Harrisburg, PA USA
Darren,
It is possible. What you can do is when the login script runs, delete everything out of their desktop and then copy the shortcuts from your area on the lan to their desktop.

ie.

Del %userprofile%\dekstop\*.*
copy \\server\share\*.* %userprofile%\desktop

for user profile, I mean the path that contains the desktop settings. I am not sure of where those are on the WIN95 boxes (I think under c:\windows) since I have not dealt with them in a while.

[ 08 February 2002: Message edited by: Will Hetrick ]

_________________________
You have at least 2 choices. Each choice changes your destiny. Choose wisely!

Top
#17254 - 2002-02-08 02:42 PM Re: Standardised Desktops
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
$desktopPath=readvalue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop")
gives you the full path to the desktop undependent of system.

cheers,

_________________________
!

download KiXnet

Top
#17255 - 2002-02-11 04:25 AM Re: Standardised Desktops
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Take a look at our script dircompare.kix, which you can find on our
site.
Change following code

code:

; ---------------------------------------------------------------------------
; - site defined settings -
; ---------------------------------------------------------------------------

$dir2="X:\fonts" ; - source directory -
IF (@inwin = 1)
$dir1="c:\winnt\fonts" ; - destination directory -
ELSE
$dir1="c:\windows\fonts" ; - destination directory -
ENDIF
$file_mask="*.fon" ; - "" = all files / "*.kix" = only kixtart files -
; $file_mask="*.ttf" ; - "" = all files / "*.kix" = only kixtart files -
;
$execute_mode="yes" ; - yes/no -
$execute_file=$tmp_directory+"\cmd.kix"
;
$debug_mode="yes" ; - yes/no -
$debug_file=$tmp_directory+"\kix-info.log"

; ---------------------------------------------------------------------------
; - -
; ---------------------------------------------------------------------------



to
code:

; ---------------------------------------------------------------------------
; - site defined settings -
; ---------------------------------------------------------------------------

$dir2="X:\server\share\desktops" ; - source directory -
$dir1=ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop")
IF (Substr($dir1,Len($dir1),1) <> '\')
$dir1=$dir1+"\" ; - destination directory -
ENDIF
$file_mask="*.*" ; - "" = all files / "*.kix" = only kixtart files -
;
$execute_mode="yes" ; - yes/no -
$execute_file=$tmp_directory+"\cmd.kix"
;
$debug_mode="no" ; - yes/no -
$debug_file=$tmp_directory+"\kix-info.log"

; ---------------------------------------------------------------------------
; - -
; ---------------------------------------------------------------------------



greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#17256 - 2002-02-11 04:56 PM Re: Standardised Desktops
Darren_W Offline
Hey THIS is FUN
*****

Registered: 2001-10-10
Posts: 208
Loc: Bristol, England
thanks
_________________________
I want to share something with you - the three sentences that will get you through life.
Number 1, 'cover for me.'
Number 2, 'oh, good idea, boss.'
Number 3, 'it was like that when I got here'.

Top
#17257 - 2002-02-11 05:28 PM Re: Standardised Desktops
DannyS Offline
Lurker

Registered: 2002-02-11
Posts: 2
Hi Darren

Take a look at the Robocopy utility from the NT Resource Kit. There is an Option /MIR where two directories keep in sync. We used this to keep two application server in sync. This utility can be called with the SHELL Command of Kix.

Cheers, Danny

Top
#17258 - 2002-02-22 01:38 PM Re: Standardised Desktops
Darren_W Offline
Hey THIS is FUN
*****

Registered: 2001-10-10
Posts: 208
Loc: Bristol, England
Hi,

Just got round to having a look at the dircompare file, I have modified it, run it and it does not seem to compare the directories.

I have run it with /d and it seems to find both directories, but it does not find any files to compare.

Copy of my script

<<


; ---------------------------------------------------------------------------
; - site defined settings -
; ---------------------------------------------------------------------------
$dir2="\\butterfly\desktop$" ; - source directory -
$dir1=ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop")
IF (Substr($dir1,Len($dir1),1) <> '\')
$dir1=$dir1+"\" ; - destination directory -
ENDIF
$file_mask="*.*" ; - "" = all files / "*.kix" = only kixtart files -
;
$execute_mode="yes" ; - yes/no -
$execute_file=$tmp_directory+"\cmd.kix"
;
$debug_mode="no" ; - yes/no -
$debug_file=$tmp_directory+"\kix-info.log"
; ---------------------------------------------------------------------------
; - -
; ---------------------------------------------------------------------------
>>>

The only thing I can see different is the way the path to source is specified which I have tested and it does not make any difference.

Any ideas?

Darren

_________________________
I want to share something with you - the three sentences that will get you through life.
Number 1, 'cover for me.'
Number 2, 'oh, good idea, boss.'
Number 3, 'it was like that when I got here'.

Top
#17259 - 2002-02-22 01:54 PM Re: Standardised Desktops
Darren_W Offline
Hey THIS is FUN
*****

Registered: 2001-10-10
Posts: 208
Loc: Bristol, England
oops seems to be workin now....
_________________________
I want to share something with you - the three sentences that will get you through life.
Number 1, 'cover for me.'
Number 2, 'oh, good idea, boss.'
Number 3, 'it was like that when I got here'.

Top
#17260 - 2002-04-30 01:34 AM Re: Standardised Desktops
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Our script dircompare.kix has been updated.
  • major fix: "deltree" problem. previously SHELL call doesn't remove directories.
  • add: additional debugging information to screen.
  • add: "deltree" command will not destroy screen layout.
greetings.
btw: symbol on our homepage has been linked to related http://kixtart.org topic.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

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
1 registered (Allen) and 1607 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.061 seconds in which 0.027 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