Monday, September 10, 2012

Get Rid of "SafeNet Sentinel" Folder (or any folder!) in My Documents

One of my pet peeves is programs that decide to do something to your computer without asking you. In general, it the the lowly, defenseless "My Documents" folder that bears the brunt of this manipulation. While many of us try endlessly to maintain a clean and organized documents folder, we have to contend with many programs that insist on creating their very own folder. It's like if every house guest you had over just took over a couple of drawers in your bedroom!

Many programs do allow you to change the location of these folders once they're installed, and still others will allow manual relocation of these folders (but will often throw up an error and require you to gently direct them towards their stash of data like a confused kitten).

There are some programs, however, that insist on creating a folder somewhere no matter what you tell them! Here is my solution:

Open Notepad, create a new documents and type the following lines:
cd "C:\Users\[your username]\Documents\"
rd "SafeNet Sentinel" /s /q

Save it as "Remove Annoyance.bat" (you can name it whatever you want, but you MUST include the .bat extension. Make sure to put your username in the first line and, if you're getting rid of some other folder, put it's name in the second line where I have "SafeNet Sentinel".

WARNING:
This command will delete the entire contents of the folder you specify. Don't do this unless you're sure the folder is useless.


Now, in your start menu type "Task Scheduler" and run the program. Click "Create Basic Task" on the right hand side. Name it, set it to run on startup or daily, set the action to "Start a Program" and then find your .bat file and set it as the program to be run. Once you finish setup, you're good.

If you move the .bat file, this will no longer work. Make sure the file is somewhere convenient before you setup the task scheduler.

No comments:

Post a Comment