how to access a folder that is randomly created by firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vishal1082
    New Member
    • Apr 2009
    • 92

    how to access a folder that is randomly created by firefox

    i m creating a app that can make backup of ur browser data, i m stucked for firefox, %APPDATA%\Mozil la\Firefox\Prof iles\ - this is the address for all of your bookmarks and everything in %APPDATA%\Mozil la\Firefox\Prof iles\ thr is a folder that is generated by firefox by a random string, its different on every comp, i wanna make the *randomly genrated folder* to a zip, i know how to make zip but i wanna know how can i do it without knowing the name of the folder...
    please help me, i can post the code here if anyone want..

    Edit:
    also if anyone can tell me, plz tell whr are bookmarks, history and everything is saved for IE, Google Chrome, Flock, Safari, Konqueror, Epiphany, Maxthong, Avast and Opera

    also, when my app starts, it checks which browsers u have by looping every entry in the add/remove in control panel (through registry) but thr is something wrong, all browsers are detected if they are installedm, but Apple Safari and Opera are not detected through registry, if anyone know how can i solve this problem plz tell me the registry location i check is SOFTWARE\Micros oft\Windows\Cur rentVersion\Uni nstall

    any help would be highly appriciated and maybe i will add ur name in the about box too :P

    please help!
    thanks..vishal
    Last edited by vishal1082; Apr 7 '09, 05:19 AM. Reason: forgot to add something
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Well if you know the parent directory: %APPDATA%\Mozil la\Firefox\Prof iles\
    You can use the Directory object to get a list of all the directories below that directory.
    You can then make a zip file of that directory when you have the name

    Comment

    • vishal1082
      New Member
      • Apr 2009
      • 92

      #3
      Originally posted by Plater
      Well if you know the parent directory: %APPDATA%\Mozil la\Firefox\Prof iles\
      You can use the Directory object to get a list of all the directories below that directory.
      You can then make a zip file of that directory when you have the name
      can u tell me how to do that please?

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Uhh I pretty much did already? Use the directory object:
        string[] subDirectories = Directory.GetDi rectories(path_ string);

        Comment

        • vishal1082
          New Member
          • Apr 2009
          • 92

          #5
          Thank You :) it works!

          Comment

          Working...