Re: Windows hard disk search

2011-05-11 Thread Bob Sneidar
But why bother? specialfolderpath("Home") gives you the current user profile. So: put the defaultFolder into theOldDefaultPath put specialfolderpath("Home") & "\Application Data\Thunderbird\Profiles\" into \ theTbirdProfilePath if there is a folder theTbirdProfilePath then set the defaultFold

Re: Windows hard disk search

2011-05-11 Thread Mike Bonner
Just found this On *Windows Vista/XP/2000*, the path is usually %AppData% \Thunderbird\Profiles\.default\, where is a random string of 8 characters. Just browse to C:\Documents and Settings\[User Name]\Application Data\Thund

Re: Windows hard disk search

2011-05-11 Thread Bob Sneidar
Assuming you want to do things the hard way and shell it out, %USERPROFILE% should get you to the current user profile, right? Bob On May 11, 2011, at 3:24 PM, Mike Bonner wrote: > Ah k, if the username is the issue, the system global var (at least on win > 7, cant check on xp) is $USERNAME an

Re: Windows hard disk search

2011-05-11 Thread Bob Sneidar
You can use specialfolderpath("home") in windows or mac to get the users home folder (known as the profile in Windows). Now you only have 2 possible places it can be depending on Win7 or XP. Bob On May 11, 2011, at 3:13 PM, Bill Vlahos wrote: > It is a Thunderbird pref file "prefs.js". XP s

Re: Windows hard disk search

2011-05-11 Thread Mike Bonner
Ah k, if the username is the issue, the system global var (at least on win 7, cant check on xp) is $USERNAME and should contain the current username. Might make it possible to hit it directly using the system global. On Wed, May 11, 2011 at 4:14 PM, Bill Vlahos wrote: > Mike, > > Thanks. I c

Re: Windows hard disk search

2011-05-11 Thread Bill Vlahos
Mike, Thanks. I can narrow it down. This is very helpful. Bill Vlahos On May 11, 2011, at 3:11 PM, Mike Bonner wrote: > If you can narrow down the places to search, you can do this with a shell > command. You could technically do the whole drive, but it would be way too > slow to be worthwhile

Re: Windows hard disk search

2011-05-11 Thread Bill Vlahos
It is a Thunderbird pref file "prefs.js". XP stores it differently than Win7 but in both cases the user's name is part of the path so I can't program for that. If I search the drive I will get the path to all the files and can validate the "right" one based on having the name "Thunderbird" in th

Re: Windows hard disk search

2011-05-11 Thread Mike Bonner
If you can narrow down the places to search, you can do this with a shell command. You could technically do the whole drive, but it would be way too slow to be worthwhile, but if you only have to search a small subset of the drive it shouldn't be too bad. set the defaultfolder to "c:\where\to\sta

Re: Windows hard disk search

2011-05-11 Thread Bob Sneidar
I wouldn't try to search for it if I were you. Just check for the OS and conditionally set the path accordingly. If it could be ANYWHERE, than that begs the question, what is it and who put it there? Bob On May 11, 2011, at 2:14 PM, Bill Vlahos wrote: > I want to modify a prefs file on XP an

Windows hard disk search

2011-05-11 Thread Bill Vlahos
I want to modify a prefs file on XP and Windows 7 computers. Since the file could be in different places I can't count on knowing the path to it. How do I execute a search for the file by name in LC and get the path to it? The file would only be on the user's hard disk not on any mounted servers