Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2004
    Posts
    6

    Adding favorites

    Is there a global variable for the user's Favorites folder? If not then is there any way to copy files to the current user's profile?

    I have found the _UsePerUserFolders variable but this is just a toggle variable so I can't use this to copy files to the current user's profile as I was hoping to.

    Any ideas?

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    Here is a function to find the Favorites folder:

    Code:
    function GetFavoritesFolder()
    	local strReturn = "";
    -- "Explorer" should be all together below.  For some reason this BBS breaks it up.
    	local strKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders";
    	
    	strReturn = Registry.GetValue(HKEY_CURRENT_USER,strKey,"Favorites",true);
    		
    	return strReturn;
    end
    To test it, put it in your On Startup project event followed by:

    Code:
    Dialog.Message("Favorites Folder", GetFavoritesFolder());
    Last edited by Brett; 10-08-2004 at 07:57 AM.

  3. #3
    Join Date
    Oct 2004
    Posts
    6
    That worked perfectly. Thanks alot!!!

Similar Threads

  1. Web Browser - Favorites
    By Para in forum AutoPlay Media Studio 4.0
    Replies: 10
    Last Post: 11-03-2003, 05:26 AM
  2. Add To Favorites
    By Pgoto in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 07-21-2003, 04:38 AM
  3. HOWTO: Locate Internet Explorer's Favorites Folder
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-11-2002, 09:12 AM
  4. Adding objects to an existing screens?
    By Mike Fotes in forum Setup Factory 5.0
    Replies: 1
    Last Post: 07-09-2001, 01:56 PM
  5. Adding Files
    By Bonehead in forum Setup Factory 5.0
    Replies: 2
    Last Post: 06-16-2000, 10:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts