Page 1 of 1 1
Topic Options
#163844 - 06/06/30 12:52 AM is it possible to copy to redirected my documents
Ed_Patterson Offline
Fresh Scripter

Registered: 06/06/29
Posts: 20
Subject says it all, I am new to AD and can't seem to come up with the magic combination. Basically I need to copy users notes user.id file to their redirected my documents folder.

Any help appreciated.

Ed

Top
#163845 - 06/06/30 12:54 AM Re: is it possible to copy to redirected my documents
NTDOC Administrator Offline
Administrator
*****

Registered: 00/07/28
Posts: 11547
Loc: CA
Just use KiXtart to read the registry where their My Documents is really located and you should be able to do the copy no problem.

Let us know if you need further assistance with this task.

Top
#163846 - 06/06/30 01:04 AM Re: is it possible to copy to redirected my documents
Les Offline
KiX Master
*****

Registered: 01/06/11
Posts: 12734
Loc: fortfrances.on.ca
Well.. the first task is to FIND their UserID file. Never hard code it because users can switch ID.
:First check "App Paths" to see if Notes is installed
$IsNotesInstalled=ReadValue('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\notes.exe','Path')

The script then locates the notes.ini file from the following reg Key/Value:
HKCU\Software\Lotus\Notes\6.0
NotesIniPath
e.g. "C:\Documents and Settings\LLigetfa\Local Settings\Application Data\Lotus\Notes\Data\notes.ini"

That method only works on regular client installs. Administrator installs lack the \6.0 reg key.

The script then reads the INI file For the following Keys/Values:
[Notes]
Directory=
e.g. "C:\Documents and Settings\LLigetfa\Local Settings\Application Data\Lotus\Notes\Data"

KeyFilename=
e.g. "lligetfa.id"


$NotesIniPath=ReadValue('HKCU\Software\Lotus\Notes\6.0','NotesIniPath')
$Directory=ReadProfileString($NotesIniPath,'Notes','Directory')

You then need to determine if the ID file is in the current dir or another dir.
$KeyFilename=ReadProfileString($NotesIniPath,'Notes','KeyFilename')
If InStr($KeyFilename,'\')
$FileNames[0]=$KeyFilename
Else
$FileNames[0]=$Directory+'\'+$KeyFilename
EndIf

That's a start anyway.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#163847 - 06/06/30 01:41 PM Re: is it possible to copy to redirected my documents
Ed_Patterson Offline
Fresh Scripter

Registered: 06/06/29
Posts: 20
Les, thanks for the detailed reply. It shed the light on some possibilities I did not know existed.

Ed

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Chris S., Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
3 registered (BradV, AndrewRoom, Arend_) and 147 anonymous users online.
Newest Members
AndrewRoom, 000Raph000, curkus, Ken_Sumrall, Keris2112
17455 Registered Users

Generated in 0.059 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