Hi there,
I am writing a little tool that helps you to remove specific malicious firefox toolbars, and addons.
I have come up with script that can safely modify certain entries in the prefs file, and another script that creates a backup of the firefox prefs file (with a restore function), if the user happens to make a change that they did not want to make.
I want to make this tool compatible with XP, Vista, and windows 7 users, but I have one problem...
The directory is always going to be different for every user.
Let me explain why:
This is the directory for the prefs file on my windows 7 pc:
Quote:
|
C:\Users\Tom\AppData\Roaming\Mozilla\Firefox\Profiles\byc0puwc.default\
|
The numbers/letters used for the "byc0puwc.default" folder name, is going to be different for each user, as I'm guessing the numbers/letters in that folder name are randomly generated for each user.
My solution, would be a silent wscript that will search the "CURRENTUSER" directory/sub-directories for that ".defult\" folder (including hidden folders), and write the exact directory, to a text file, for my software to use.
I'm sure it wouldn't be hard to achieve this effect with a wscript.
It could be just as easily achieved with batch, but its harder to automate a batch file to launch silently.
Could someone please show me a sample script that would do what I described above?