# Why are these unwanted files/folders opening when I log on?

Raymond

I get called on frequently to do troubleshooting, so I figure I’d share some entries from my private bag of tricks.  (And there are some remarks for programmers hidden here too.)

Problem 1. A folder like C:\Program Files\LitWare opens each time you log on.

Reason: Your system contains two sibling directories where one is a strict prefix of the second. For example,

C:\Program Files\LitWare
C:\Program Files\LitWare Deluxe

If you go to regedit, you will likely find under

HKEY_LOCAL_MACHINE\Microsoft\Windows\CurrentVersion\Run

or

HKEY_CURRENT_USER\Microsoft\Windows\CurrentVersion\Run

an entry that refers to a program in the longer directory, like

Reminder=REG_SZ:C:\Program Files\LitWare Deluxe\reminder.exe

What’s more, the reference such as the one above will not have quotation marks to protect the embedded spaces in the name.

What’s going on is that LitWare Deluxe wants to run C:\Program Files\LitWare Deluxe\reminder.exe, but due to the spaces, this first gets parsed as

app = C:\Program
command line=Files\LitWare Deluxe\reminder.exe

This fails, so the system tries again with

app = C:\Program Files\LitWare
command line=Deluxe\reminder.exe

and this succeeds because you have a folder called C:\Program Files\LitWare. Edit the string and add the quotation marks.

Note to programmers: This is why it’s important to quote your filenames if they contain spaces.

Problem 2. A desktop.ini file opens when you log on.

Reason: The System and Hidden attributes for the file desktop.ini in the directory

or