On Aug 23, 2018, at 8:50 AM, Chip Scheide wrote:

> there is another issue here.
> if using a 4Dlink file (and maybe if not)
> the password is/can be saved in the link file.
> 
> I have code in my startup routine that handles this issue too.
> this code locates the link file, and then removes the password from the 
> file.
> 
> $Link_File_Path:=System folder(User Preferences_User)
> $Database_Name:=utl_Database_Name 
> $Database_Name:=$Database_Name+".4DLink"  //becaus ethe link file does 
> not carry that part of the database name
> 
> If (Folder separator=Colon_Char)  //link file is in a specific location
> $Link_File_Path:=$Link_File_Path+"4D:Favorites 
> v13:Remote:"+$Database_Name
> Else   //windows - link file may be in either of 2 locations
> $Database_Name:=txtutl_Strip_Characters ($Database_Name)  //windows 
> does not like leading spaces
> $Link_File_Path:=System folder(Desktop)
> 
> If (Test path name($Link_File_Path)#Is a document)  //file Does NOT 
> exist
> $Link_File_Path:=System folder(User Preferences_User)
> End if 
> $Link_File_Path:=$Link_File_Path+$Database_Name
> End if 
> 
> If (Test path name($Link_File_Path)=Is a document)  //file exists
> $xml:=DOM Parse XML source($Link_File_Path)
> DOM SET XML ATTRIBUTE($xml;"md5_password";"")
> DOM EXPORT TO FILE($xml;$Link_File_Path)
> End if


Hi Chip,

My particular 4D application is a 4D Server/4D Client that is compiled and 
merged with 4D Volume Desktop. They operate differently than 4D separately. So 
your above code works in your situation, but it does not in mine. Trust me. 
I’ve spend HOURS working on this and it DOES use a “.mdp” file and NOT a 
‘.4dlink” file. 

Is your application compiled and merged with 4D Volume Desktop?

Tim
        
Tim Nevels 
[email protected] <mailto:[email protected]>
Innovative Solutions
785-749-3444


**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to