Page 1 of 2 12>
Topic Options
#166754 - 2006-09-03 01:22 PM Hebrew support.
ddady Offline
Getting the hang of it

Registered: 2006-09-03
Posts: 98
Hi all,

I'm trying to copy a file from the DC to all computers in the domain. I have already made the script and succeed with the printers configuration.

Now, my problem is that sevral computers in the domain has a local language XP OS. which means that the desktop folder is in HEBREW, nothing i have tried worked. It only works on computers with English XP.

Will be glad to have some ideas....

Thanx in advance.

Top
#166755 - 2006-09-03 02:58 PM Re: Hebrew support.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Post the relevant portion of code. As far as file and folder paths, KiX should be agnostic, not caring about language. Just make sure you are pulling the path from the registry and not manufacturing it.
Top
#166756 - 2006-09-03 02:59 PM Re: Hebrew support.
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Please post your code so that we can see what you are trying to done.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#166757 - 2006-09-03 03:36 PM Re: Hebrew support.
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
If it is the Desktop you are looking for, you can find it in the registry like Les said. I think it goes like this:
Code:

Dim $Desktop
$Desktop = ReadValue("HKEY_USERS\"+@SID+"\Software\Microsoft\Windows\Currentversion\Explorer\Shell Folders","Desktop")
$Desktop


Looking up some information about "Shell Folders", I found this article: Windows Confidential: The Sad Story of the Shell Folders Key. ALso very interesting...

Top
#166758 - 2006-09-03 04:18 PM Re: Hebrew support.
ddady Offline
Getting the hang of it

Registered: 2006-09-03
Posts: 98
Hi all and thanx for the response.

The code is:

copy "\\dc\data$\churi.url" "c:\documents and settings\all users\desktop\" this one works
copy "\\dc\data$\churi.url" "c:\documents and settings\all users\שולחן העבודה\" this one doesn't works
You might not see the Hebrew text since you dont have the fonts.

It's should be a very simple "copy" but it seems that it doesn't recognize the Hebrew desktop folder.

Top
#166759 - 2006-09-03 04:30 PM Re: Hebrew support.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
As I said, since you are "manufacturing" the path, it is doomed to fail.
Top
#166760 - 2006-09-03 04:45 PM Re: Hebrew support.
ddady Offline
Getting the hang of it

Registered: 2006-09-03
Posts: 98
So how would i do it? I need it to be on the desktop of the All users folder.
or maybe you guys have a better suggestion, i'm preety new at this.

Help would be appreciated!

Top
#166761 - 2006-09-03 05:04 PM Re: Hebrew support.
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Maybe
Code:

Dim $Desktop
$Desktop = ReadValue("HKEY_USERS\"+@SID+"\Software\Microsoft\Windows\Currentversion\Explorer\Shell Folders","Desktop")
copy "\\dc\data$\churi.url" $Desktop


in the logon script or so....

Top
#166762 - 2006-09-03 05:07 PM Re: Hebrew support.
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Whoops, I think my example copies it to the "current users" desktop, not to the "all users".
But probably there will be somewhere another key in the registry...

Top
#166763 - 2006-09-03 05:33 PM Re: Hebrew support.
ddady Offline
Getting the hang of it

Registered: 2006-09-03
Posts: 98
could it be this path?

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

The key is "common desktop" and the value is "C:\Documents and Settings\All Users\desktop" [of course the desktop in HEBREW]

Top
#166764 - 2006-09-03 05:56 PM Re: Hebrew support.
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
It sure looks like it. Regular users (no admin privs) can not change anything in the HKEY_LOCAL_MACHINE part of the registry on Win2k and up.
Reading should be no problem.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#166765 - 2006-09-03 07:19 PM Re: Hebrew support.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You need admin rights to write to the All Users desktop.
Top
#166766 - 2006-09-03 07:23 PM Re: Hebrew support.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Quote:

The key is "common desktop" and the value is "C:\Documents and Settings\All Users\desktop"



Wrong. Actually, the "key" is "desktop". The value name is "common desktop" and value data is "C:\Documents and Settings\All Users\desktop".
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#166767 - 2006-09-03 07:24 PM Re: Hebrew support.
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Oh yes, Mart, Les, right. Read-Only.
Top
#166768 - 2006-09-03 07:44 PM Re: Hebrew support.
ddady Offline
Getting the hang of it

Registered: 2006-09-03
Posts: 98
Thanx all, will try it tomorrow and keep you posted.

BTW, is there any GOOD guide on the web that explains and gives samples?

Top
#166769 - 2006-09-03 09:44 PM Re: Hebrew support.
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Good guide to what? KiXtart ?

There is the manual that ships with it in the zip.
There is http://www.kixhelp.com/Downloads/KORG-FAQ.chm
There is http://sclogic.vo.llnwd.net/o2/downloads/kix/KiXhelp451.zip

The best place is right here on the board. Typically "most" questions are answered in minutes and rarely do any go unanswered for more than a few hours.

We also have an Examples forum (though not very many examples)
http://www.kixtart.org/ubbthreads/postlist.php?Cat=0&Board=UBB11

There is also a book, but not free:
http://www.kixscripts.com/book/

Hope that helps.

Top
#166770 - 2006-09-03 11:45 PM Re: Hebrew support.
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Whaaaw, fnAllSpecialFolders() seems to me even better then peeking in the registry. Thanks Doc for the links.
Top
#166771 - 2006-09-04 05:55 AM Re: Hebrew support.
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Well there is this one too.

GetSpecialFolders()
http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=83667
 

Top
#166772 - 2006-09-04 09:11 AM Re: Hebrew support.
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Maybe something like this. (untested)

Though you can also create shortcuts on the desktop as well instead of copying if you like.

Break On
Dim $SO
$SO=SetOption('Explicit','On')
$SO=SetOption('NoVarsInStrings','On')
$SO=SetOption('NoMacrosInStrings','On')

Dim $SourceFolder, $DestinationFolder
$SourceFolder = "\\dc\data"+'$'+"\churi.url"
$DestinationFolder = GetSpecialFolders(25)
Copy $SourceFolder '"' + $DestinationFolder[1] + '"'
'Copy error: ' + @ERROR + ' - ' + @SERROR ?

Function GetSpecialFolders($Folder)
Dim $objFolderItem
$objFolderItem=CreateObject('Shell.Application').Namespace($Folder).Self
$GetSpecialFolders=$objFolderItem.Name,$objFolderItem.Path
EndFunction

Top
#166773 - 2006-09-04 09:13 AM Re: Hebrew support.
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
FYI - This is NOT the correct way though to do it if you're attempting to do it from your desktop as it will read YOUR path and not their path.

To do it remotley you should read their registry and find their desktop.

Top
Page 1 of 2 12>


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

Who's Online
0 registered and 641 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.073 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

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