Skip to main content

[BUG?] [Using Save as in Windows 7 explorer] Saving a file with a file name same as a folder name within a directory.

I recently encounter this issue while working on a project. I am not sure whether it should be considered as a bug.. probably not.. feel free to throw your opinion

How to generate?

1.Open a new word file in Microsoft office 2010/Notepad/Any other text editor.
2.Click Save as option.
3.Try to Save the file in a directory(folder) with some sub directory inside it.
4. Try to save the file with a name exactly the same name as any of the sub directory within that directory.
Example: If we have folder name "A" try to save the file named as "A".

Actual Result:

It actually open the folder that matched with the typed file name instead of saving the file with that name.

My Concern:

It should allow saving the file instead of opening the folder. [They are different types [directory and single file]. If you later visit that directory and rename the file to the same names as one of the directory it actually works fine with same naming!]

Whether it should be considered as a bug?

It might not  be a bug but an intended use based on how windows explorer works or may be based on the  most users expectations. As sometimes you need to compromise based on the expectation of most users.

Security Check:

I talked with one of my colleague and He suggested to do a security check

"Try putting a password on a folder and seeing if you can get into the folder that way"

I tested that with password protect software and observed that password protected folder is not displayed in file explorer.So in that case I was able to save the file with the same name without any problem. 

Conclusion:

This might have potential for harmful behavior but I can't verify that yet. Let me know if you find something interesting?

Comments

raza wala said…
Good post.Windows 7 has autorun worm.for more information about this bug i am sharing link Windows7 problem bug autorun
ZabedAkbar said…
Thank you for your comment.

Popular posts from this blog

Creating dynamic email templates using C# and Office Outlook

It is quite common for many applications to send automated email notifications. Couple of months ago, I have worked on improving our old email template format to make it more user friendly.
In this tutorial I will walk you though regarding how I took advantage of Microsoft Outlook to quickly generate custom email template and later using the html template for building an automated custom email application using C#.

Steps:Creating Templates: Using the rich text editor support  in Outlook create a nicely formatted email. Use placeholder text for the values you like to change dynamically based on your task completion status.

To keep this tutorial simple, I have created a  simple table with placeholder text inside the third bracket [place holder text]. However, you can use anything supported by outlook editor.Getting HTML code: Send the created email to your own address. After that, open the sent email and right click to view source. It will display the HTML source of the email body with …

Book Review - The Phoenix Project

Here at Skybox Labs, we do regular lunch and learn session where a fellow colleague present on topics ranging from clean code, continuous integration, game development, machine learning to almost any areas where there are reasonable interests.

One of the very recent lunch and learn series that I have attended was focusing on DevOps which got me interested to learn more about the topic. I was looking for recommended books and the lead presenter highly recommended that I start with 'The Phoenix Project' by Gene Kim

Being inspired by the stellar reviews in Amazon, I have decided to get a copy and read it over the weekend.
A fantastic book that contains a wealth of information and delivers it in an intelligent and interesting way; a story. The book successfully captures the events and struggles of most people who work in IT Operations and gives a very good explanation on why these problems exist, and how you can solve them. It portrays a very effective way of thinking in applying …

Persian Music - Homayoon - Nemitonam English lyrics

I love this song. I have requested one of my Persian friend to translate it for me and she did really nice job.. I am sure you will love it..
"

"The person who was the only person I had,
was the only refuge of my lonely heart,
Left me alone and went from my side
I am restless form the pain of her separation

I thought she stays with me
sings love song for me
I thought she understand my words
I didn’t know she’s unkind

Though gone, but still
I am full of her love
Her thought is always with me
Wherever I go, she is in front of my eyes, in front of my eyes
I want to stand out
find a way to reduce my pain of her separation
But it is not possible, There is no way
I cannot bear
I cannot bear

The person who was the only person I had,
was the only refuge of my lonely heart,
Left me alone and went from my side
I am restless form the pain of her separation

I thought she stays with me
sings love song for me
I thought she understand my words
I didn’t know she’s unkind

Though gone, but still
I …