Indigo Rose Software
  #1  
Old 10-08-2004
G Mills G Mills is offline
Indigo Rose Customer
 
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?
Reply With Quote
  #2  
Old 10-08-2004
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
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 08:57 AM.
Reply With Quote
  #3  
Old 10-08-2004
G Mills G Mills is offline
Indigo Rose Customer
 
Join Date: Oct 2004
Posts: 6
That worked perfectly. Thanks alot!!!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Browser - Favorites Para AutoPlay Media Studio 4.0 10 11-03-2003 06:26 AM
Add To Favorites Pgoto AutoPlay Media Studio 4.0 2 07-21-2003 05:38 AM
HOWTO: Locate Internet Explorer's Favorites Folder Support Setup Factory 6.0 Knowledge Base 0 10-11-2002 10:12 AM
Adding objects to an existing screens? Mike Fotes Setup Factory 5.0 1 07-09-2001 02:56 PM
Adding Files Bonehead Setup Factory 5.0 2 06-16-2000 11:05 AM


All times are GMT -6. The time now is 01:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software