Showing posts with label FileTypes. Show all posts
Showing posts with label FileTypes. Show all posts

Saturday, November 19, 2011

bench3

Why Is It Important To Display Filename Extensions

Every file has a name. Almost every file has a name that looks more or less like this: Some Name or Another.ext.

The part to the left of the period — Some Name or Another, in this example — generally tells you something about the file, although it can be quite nonsensical or utterly inscrutable, depending on who named the file.

The part to the right of the period — ext, in this case — is a filename extension, the subject of my diatribe.

If you’re looking at the Documents on your computer and you can’t see the period and three-letter suffixes of the filenames (such as .doc or .docx or .xls or xlsx and .jpg etc.,) that are visible in the below screen shot, don’t panic! You need to tell Windows to show them.

Showing filename extensions

In my opinion, every single Windows 7 user should force Windows to show full filenames, including the (usually three-letter) extension at the end of the name.

Warning! Filename extensions were considered dangerous: too complicated for the typical user, a bit of technical arcana that novices shouldn’t have to sweat. If you want to play around on Filename Extensions, possible risks were there that you could even damage the Operating System Files

Filename extensions have been around since the first PC emerged from the primordial ooze. They were a part of the PC’s legacy before anybody ever talked about “legacy.” Somebody, somewhere decided that Windows wouldn’t show filename extensions any more.

I really hate it when Windows hides filename extensions, for four big reasons:

✦ If you can see the filename extension, you can usually figure out which kind of file you have at hand and which program will open it. People who use Word 2003, for example, may be perplexed to see a .docx filename extension — which is generated by Word 2007 and can’t be opened by Word 2003 unless you use Microsoft Compatibility Pack.

✦ It’s almost impossible to get Windows to change filename extensions if you can’t see them. Try it.

✦ Microsoft Outlook forbids you from sending or receiving specific kinds of files, based solely on their filename extensions. You can find a list of 88 dangerous filename extensions, blocked by Outlook 2003, at office.microsoft.com/en-us/assistance/HA011402971033.aspx.

✦ You bump into filename extensions anyway. No matter how hard Microsoft wants to hide filename extensions, they show up everywhere — from the Readme.txt files mentioned repeatedly in the official Microsoft documentation to discussions of .jpg file sizes on Microsoft Web pages and a gazillion places in between.

If you want to know how you can make Windows to show Filename Extensions. Follow this link For the Step-by-Step Instructions To Make Windows Show Filename Extensions.

Read More

Thursday, November 17, 2011

bench3

Step-by-Step Instructions To Make Windows Show Filename Extensions

If you’re looking at the Documents on your computer and you can’t see the period and three-letter suffixes of the filenames (such as .doc or .docx or .xls or xlsx and .jpg etc.,) that are visible in the below screen shot, don’t panic! You need to tell Windows to show them.

The fact is that nearly all files have names like Letter to Mom.doc, Financial Projections.xls, or ILOVEYOU.vbs. But Windows, with rare exception, shows you only the first part of the filename. It cuts off the filename extension.

So you see Letter to Mom, without the .doc (which brands the file as a Word document), Financial Projections without the .xls (a dead giveaway for an Excel spreadsheet), and ILOVEYOU without the .vbs (which is the filename extension for Visual Basic programs).

Showing filename extensions

To make Windows show you filename extensions the easy way, follow these steps:

1. Open Windows Explorer by choosing Start ➪ Documents.

2. Press Alt to show the menu; then choose Tools➪Folder Options and  click the View tab.  You see the Folder View’s Advanced Settings box, shown in screen shot below.

make Windows show you filename  extensions

Screen shot to Make Windows show you filename extensions.

3. Deselect the Hide Extensions for Known File Types check box.

While you’re here, you may want to change two other settings if you  can avoid the temptation to delete or rename files that you don’t understand. 

Select the Show Hidden Files, Folders and Drives option button if  you want Windows to show you all files on your computer. Also consider deselecting the Hide Protected Operating System Files (Recommended) check box — showing Protected files tends to clutter the screen, so use your own discretion. Sometimes you need to see all your files, even if Windows wants to hide them from you.

4. Click the OK button.

Take a look at your unveiled filename extensions.

Read More

Monday, October 24, 2011

bench3

Choosing Between Single Click and Double Click To Open Files And Folders In Windows

You can choose how icons on the Windows desktop and in Explorer windows behave as you could in Windows Me, 98 Second Edition, and XP. Your choices are

• Single-click (Web style) To select the icon without running or opening it, move your mouse pointer to the icon without clicking, and wait a second. To run or open the icon, click it once. Icon labels appear underlined (like web page links).

• Double-click (Classic Windows style) To select the icon, click it once. To run or open the icon, click it twice. Icon labels are not underlined.

Follow these steps to choose between single-click and double-click:

1. Choose Start | Control Panel. Click the (Appearance And Personalization category For Windows Vista) or Folder Options In Windows 7.

For Windows XP, Click On My Computer – Tools – Folder Options.

2. Click the Folder Options icon. You see the Folder Options dialog box, shown in Figure below. If the General tab isn’t selected, click it.

Choosing Between Single Click and Double Click To Open Files And Folders In Windows

Whether you use single-click or double-click, you can right-click icons to see a shortcut menu of commands you can perform on the icon

The General tab of the Folder Options dialog box, where you can specify how Windows
icons work.

3. In the Click Items As Follows area, click either the Single-click or Double-click radio button. If you choose Single-click, choose whether you want icon titles to be underlined all the time (Consistent With My Browser) or only when your mouse pointer is on the icon (Only When I Point At Them).

4. Click OK.

That’s it. This is how you can Choosing Between Single Click and Double Click To Open Files And Folders In Windows

Read More

Saturday, June 25, 2011

bench3

Take Control Of Files And Folders In Windows | Fix Error Trusted Installer Denying Access To Files

In this article we will see how to delete files and folders in Windows 7 (also in Windows Vista) when you are denied to delete them.

When you want to delete some of your old files as they may take up space on the computer's hard drive and will subsequently get to a error message that you do not have the authorization to delete them and that you would need to get permission from windows trusted installer.

Even if you own this particular computer you will be forced with this message. Now the question is "what do one have to do to change the permissions"?

Even if you try to change them through the properties of the afore mentioned program files, all options necessary to change them will be grayed out, making us unable to select them.  Why does one unable to change settings on my own computer when run as the administrator? 

Here is my step by step process for reclaiming the right to delete and move files. 

Warning: DO NOT change the permissions of the Windows folder using the following method. Should you need permissions to edit files in the Windows folder, change them individually.  Windows Backup can be irreparably (as far as I know) broken by such a change.  LEAVE THE WINDOWS FOLDER ALONE UNLESS YOU KNOW EXACTLY WHAT FILE YOU NEED ACCESS TO.

  • 1. Click the start menu and open Computer.
  • 2. Click on the drive that contains the file you are trying to move/delete.
  • 3. Right click on the folder that contains the file you are trying to move/delete. Select Properties.
  • 4. Click on the Security tab.
  • 5. Under the box containing the permissions each entity has, click on Advanced.
  • 6. In the new Advanced Security Settings window, click on the Owner tab.
  • 7. In the owner tab, click on the Edit button.
  • 8. In the new window, you should see "Current Owner:" over a box with (most likely) trusted installer in it.  Under that you should see "Change Owner to:" followed by a short list of possible owners.

8a. If you see your username (listed as [Name] (My-PC\[Name])), then click on it and check the box below the Other users which says "Replace owner on subcontainers and objects".

8b. If you do not see your username, click on the "Other users" button. From there, enter your username into the space provided and click Check names. The username you typed should then get underlined and expanded.  Then click Ok. From there follow step 8a.

  • 9. Click Apply.
  • 10. Now close all windows opened from the properties window and close the properties window.  Reopen it, and under the box entitled "Group or user names," Click Edit.
  • 11. If you do not see your username, as chances are you won't, click add.  In the add window, type your username into the given space and click the Check names button. Your username should become underlined and expanded to include the computer name.  Then click OK. (I typically just click OK but if for some reason it doesn't work for you, at least you will know at what step you were tripped up.)
  • 12. Upon clicking OK, the Select User or Groups window will close and you should see you username has joined the other names in the Group or User names box. Click it, and then check the "Full Control" check box lower down.  This will grant you complete permissions for everything except "Special Permissions".  This is normal, and so far I have not found a way to check that checkbox but it hasn't presented itself as a problem yet so I wouldn't worry about it.
  • 13. Click Apply. You should see a window pop up saying "Changing Permissions" and file locations rapidly going by. This is normal and it means that the folder, subfolders, and files are having their permissions changed.

Alternatively, after closing and reopening the properties of the folder you want to change, you can click on the Advanced button again and then the Change Permissions button and follow similar steps once there.  This also allows you to create inheritable permissions. That is a whole new can of worms that I don't understand, so I just leave the checkboxes blank.

AGAIN, DO NOT CHANGE THE PERMISSIONS OF THE WINDOWS FOLDER. THIS COULD CAUSE A WHOLE HOST OF NEW PROBLEMS, ONE OF THEM BEING BROKEN WINDOWS BACKUP.

And if you want, you can completely remove Trusted Installer from the permissions.  I can't say what the benefit is, but it's satisfying. I hope this helps some of you.

Read More

Thursday, June 23, 2011

bench3

Manually Arranging Files And Pictures In A Folder In Windows 7

Many of us have dragged the files and pictures in Windows XP PC so that it apper in the order we keep it. But when this particular option is no longer available in Windows 7 according to Microsoft. Moving pictures and files around and within a folder is not possible in Windows 7.

Even when you try to drag and drop picture files within a folder to improve the order as we did with Windows XP, the files will return back to their original location within the folder.

Most of us absolutely must have the drag and drop feature within folders to function in a professional capacity.

if you are a photographer you need to drag images into the order that you need them to appear in slide shows and other related applications.

With that feature disabled we will be forced to rename each picture in the order we want to resort them and then use the default Microsoft sort function.  Far more time consuming and labor intensive than dragging and dropping images into the order we desire.

I appreciate that Microsoft think the new sort and search functions are more advanced and intuitive but some of us have developed a professional workflow that relies on capabilities you've now determined are unnecessary.  Every ones frustration is intense. 

I just spent three days moving from my old computer to a new unit running Windows 7 64 bit in order to improve the functionality of my Adobe software only to find out that one of the most personally useful features in Windows has been disabled. - Brandi Burkett, Professional Photographer.

Solution:

As explained before, there is no solution for this issue, as it is my design of Windows 7. However, If you are referring to the Arrange by date, size, etc then you can still do that by simply Right clicking and selecting Sort by option in the drop down menu when inside the picture or file.

This is what Microsoft support person has to say about this issue: You cannot manually rearrange the files/pictures by dragging within the folder in Windows 7. This change is by design in Windows 7. You can only uncheck the option to auto arrange icons on the desktop and can use it only on the desktop.

If you have any concerns or feedback with respect the issue or any other Microsoft application, please visit the links below and post the same:
Microsoft Connect
http://connect.microsoft.com/

Feedback for Windows 7

Read More

Sunday, June 5, 2011

bench3

MacAfee Forces The File To Be Hidden | How To Fix

I noticed that if I changed a files properties and saved it, the file would become hidden by default. [MacAfee Changing File Properties Forces The File To Be Hidden | How To Fix]

For example, if you had a photo that was upside down, if you simply turned it clockwise, it would instantly become hidden (have the hidden box ticked). If I right clicked on a music file, and changed one of the properties such as artist, as soon as I clicked apply, it would again be saved with the hidden box ticked. Of course I could simply un tick the hidden box, but this was becoming quite time consuming, and a little annoying.

I initially thought the files were being removed from my hard drive, but by changing folder options to show hidden files, I could see that they were just becoming hidden when edited.

I am using Windows 7 OS, and I have been using McAfee Total Protection 2009. When I initially tried to install McAfee, Windows highlighted that there were known compatibility issues with the program and wouldn't allow me to install it. However, by running it in compatibility mode as if it was running on XP, I was able to install McAfee without any issues and run it fine on Windows 7.

I thought it was a virus, however nothing was highlighted by any of the virus / malware programs I ran.

I tried a clean boot running only Microsoft basic services, but it still continued to do it.

So I did a clean install, I formatted my hard drive, and re-installed windows 7. I added my programs one by one and kept turning an image file to see if it disappeared. After Installing McAfee it was okay still, however as soon as MacAfee updated to a current version the problem again appeared. I removed MacAfee and it stopped.

However removing McAfee is not the solution, still I wish McAfee should come with a  solution to fix this solution. Right now, you can try the free Antivirus or other Internet Security as you wish, but make sure that is compatible with Windows 7.

I can only surmise that by running McAfee 2009 in compatibility mode in Windows 7, that one of the recent updates is causing a conflict which is causing files to alter to hidden when edited. I have since started using another internet security suite, and the issue has gone.

Microsoft Security Essentials is the name of Microsoft’s latest Anti-Virus/Anti-Spyware software for Windows operating system. It is already being tested internally at Microsoft and was launch in September last year.  Read more: Microsoft Security Essentials

Read More

Thursday, June 2, 2011

bench3

Does The Command Prompt In Windows Uses DOS Function

Why is this largely DOS oriented file naming convention still in place even in Windows 7. Why not go the UNIX route and avoid tree-corruption in Windows based system by copying of a file with an invalid name.

Well, i f your doubt is what stated above, then you are wrong. Its not the right or  proper terminology. 

First of all, there is no DOS in NT derived versions of Windows.   Nor is it likely that there will ever be a "next version of DOS," at least not from Microsoft.

The Windows command prompt and batch scripting language may resemble DOS but there is no actual DOS code or DOS function calls involved.

When Microsoft enabled long file names in Windows 95 it was done in such a way as to allow backward compatibility with the existing FAT based file system and, to a certain extent, command line syntax.

I would suggest that if you want to use long file names, you need to put them in quotes at the DOS prompt. i.e.- copy “C:\my long filename.txt” C:\filename.txt

Quotes are needed as the command processor would not otherwise be able to tell if a space is part of the file name or a a break preceding (or possibly following) a command line parameter.

It is possible that a future file system could eliminate the underlying 8.3 name and change the command line to assume all characters are part of a file name until a specific delimiter is found, but it seems unlikely.

Read More

Friday, May 27, 2011

bench3

How To Open .MIX File Without Microsoft Picture IT

If you are previously working with Microsoft Picture IT, you may have some .MIX files with you. Without using Microsoft Picture IT, how to open .MIX files?.  Also note that there are three types of .MIX file: those for MS Windows Sound MIX, those for Power C object files, and image files.

A doubt may arise on how to open the .MIX file  when someone sends you a file with an .MIX extension without mentioning if its is a Picture. A Sound Or A Power C Object File. Typically, the image file is the cause of confusion for most computer users.

I have some .mix files but no longer have the PictureIt application for my XP computer.  Is there a way to open them so I can save them as .jpg?

There are two methods to work out if the .MIX is a Picture file.

Warning: Its  always a good idea to create a System  Restore point before installing software or updates

Method 1: Using Microsoft Digital Image 2006:

The trial version of Microsoft Digital Image 2006 will open your .mix files and you can use the Mini Lab to batch convert them to the .jpg format. Loading too many photos at one time may cause freezes. Might try starting with 20 or 30 and see how it goes from there.

Just open the .mix files in DIS 2006 and go to Touchup / Batch Edit in Mini Lab.

Microsoft Digital Image Starter Edition 2006
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7C3B3DED-A15F-48C5-B724-7796FE8C151E&displaylang=en

(this product line has been discontinued but you can still download the Starter Version and run it for 60 days)

Method 2: Using PolyView:

If you are following this method, you'll find it to be  much faster than Microsoft Digital Image and larger batches shouldn't  be a problem.:

If these are single image files created in MS Picture It! and are not layered projects. That is if its not a album pages, greeting cards, collages, etc., the following info should be useful to you:

The evaluation version of PolyView may allow you to batch reformat your .mix files.
You can download an evaluation copy at the following link:

PolyView www.polybytes.com (Go to...Downloads / PolyView Any Latest Version Setup Program).

When you open PolyView Go To File -> Format Conversions – > Browse to the folder your .mix files are saved in and open the drop window and choose "All Files".

  • Left click the "Add All" button.
  • Left click the "Continue" button.
  • Choose your "Destination Format" JPEG
  • Choose your JPEG quality –> 100
  • Choose a "Destination Folder"
  • Left click the "Start" button.
  • Also read on how to open a .MIX file: http://www.tech-faq.com/how-to-open-mix-files.html
Read More

Thursday, April 28, 2011

bench3

Edit File Properties For MP3 Files In Windows 7

If we upgraded from Vista Home Premium to Windows 7 Ultimate,sometimes we can't change the artist, album, genre, etc. info on any of the music files and when we go to the file's Properties and under the Details tab, or with the tags at the bottom of the Windows Explorer.

If we try to change something and click apply or OK, it just changes right back. We have all the permissions checked under the account also tried unchecking the Read-Only attribute of the folder and files, but  after we click apply or OK, again, it changes back when we reopen the dialog box.There are several other threads with the same problem, but none have a satisfactory answer/solution.

Solution:
Take a file from C:\Users\Public\Music\Sample Music and test it.
To troubleshoot this issue, you can try the following steps:
Enable built-in admin account
  • Click Start, click "All Programs", please find and open "Accessories" folder.
  • Please right-click on "Command Prompt" item and select "Run as administrator".
  • Please type the following command line in to the coming window.
net user administrator /active:yes
Note: There is a space between "Administrator" and "/active:yes".
  • Log off and log on the Administrator account.
Read More

Wednesday, April 27, 2011

bench3

Windows Picture Viewer Does Not Show Animated GIFs

By design Windows Vista Photo Gallery and Windows 7 Picture Viewer wont display animated images. I have noticed that in Windows 7, the Windows Picture viewer only displays the first frame of an animated GIF. I can see the same picture animated in a web browser and in Windows XP. Please note that .apng (animated png) is another animated picture file type.

The Photo Gallery is designed for management of photos. The GIF format is not widely used for photos, but we included limited support for it due to the fact that some users have photos in this format. However, Microsoft did not implement the animation feature. You can use Internet Explorer to view your animated GIF files. http://blogs.msdn.com/pix/pages/faq.aspx#q12

If you wish to view the animated gif file, you can view the animated .gif files by opening it with Internet Explorer (IE). Also, use third party software such as IRFANVIEW.

Please Note: The third-party product discussed here is manufactured by a company that is independent of Microsoft. We make no warranty, implied or otherwise, regarding this product's performance or reliability.

The fact that Microsoft claims to be its design is the worst move. In other way, this is a nonsense design When windows XP fax viewer can play animated gifs natively.

Considering that gifs are the only animated picture file type I am going to go out on a limb and say for it, it is the ONLY option! The point is that is has been there for many many years and all of a sudden Microsoft decide for us that we no longer need it, it is not something for them to decide. it is not an upgrade if you remove features that the people have been using for years, it is a downgrade when you remove features.

Like having to edit the registry now to change the default icon for a file type, what is with that? Will Microsoft give us back all the the features they removed!

Honestly, It shouldn't be that hard to integrate functional .gif into windows 7, which has been working perfect for the past decade or so, and it's not all that time consuming. Why Microsoft even left it out in the first place fazes me into thinking that this is a brain-fart moment for the development staff, or whatever the technical title is.

Read More

Tuesday, April 5, 2011

bench3

Quickly Change Permissions Of Multiple Files

Recently i re-installed windows 7 on my computer, and have been having a very hard time resetting permissions on all of my music, videos, and pictures.  The media isn't on the boot drive, it's on a separate drive, so during the whole reinstallation process i left it alone.  When windows was working again, i used the security screen to take ownership of the drive and everything in it, however I've run into a bit of a snag. 

I have full control over the folders in the media drive, but none of the files have taken to the new permissions.  Each file says I tried going lower into my file hierarchy, and setting permissions on just the folders that my music is located in, and still no luck.

I can take ownership of individual files, and then i can edit them again, but there's just too many of them to do that individually.  Each file security window that there are two accounts that have permissions.  One called "account unknown.......1000", which i assume is my old account, because it has full permissions, and one called "account unknown.......1001" which i assume is my new account because it has no permissions. When i take ownership of the files, it just has "computername/username" as the owner of the file.  Is there something i can do to quickly change the permissions of each file?

You can use use Icacls.exe to modify access control lists for multiple files or folder and TakeOwn.exe to take ownership.

Icacls.exe
http://technet.microsoft.com/en-us/library/cc753525(WS.10).aspx

TakeOwn.exe
http://technet.microsoft.com/en-us/library/cc753024(WS.10).aspx

Say your content is within this folder:

C:\Users\bench3\NewFolder\Albums\The Beatles\

You should be able to right-click NewFolder, then use the permissions options to change the settings.  As long as you choose to "replace permissions on child objects", it should trickle down to all the files and folders below.

Read More

Saturday, March 26, 2011

bench3

Error_File_Corrupt When Moving A File | Chkdsk at Reboot

Many tools use temp files to create a new file and then use MoveFileEx to move the temp file over the existing file. In some cases Subversion does this multiple times in just a second. In this case Windows 7 starts returning ERROR_FILE_CORRUPT where older Windows versions returned ACCESS DENIED like errors.

This is not a big deal by itself, but this error is also broadcasted to other parts of the system.

  • * You get a status bar popup indicating that you should run chkdsk.exe to check your disk
    * A chkdsk run is scheduled for the next reboot.

Several Subversion users have declared their hard disk broken because of this bug misreporting one error after another

I can replicate this behavior with a simple C++ program on Windows 7 (multiple versions on different PC's), but I can't replicate this issue on Windows Vista or older systems.
(These start returning access denied constantly).

On Windows vista you only get the access denied (error 5) and the application doesn't quit. If you explicitly mark the directory as not to be indexed by Windows search and disable your virus scanner you get +- the Vista behavior. Either one of these can get you the errors.

Microsoft Claims that no actual corruption has occurred.

This is a known regression in Windows 7 in the NTFS file system.  It occurs when doing a superceding rename over a file that has an atomic oplock on it (atomic oplocks are a new feature in Windows 7).

The indexer uses atomic oplocks which is why it helped when you disabled the indexer.  Explorer also uses atomic oplocks which is why you are still seeing the issue.  When this occurs STATUS_FILE_CORRUPT is incorrectly returned and the volume is marked "dirty" which is a signal to the system that chkdsk needs to be run.  No actual corruption has occurred.

Read More
bench3

How To Delete The WinSxS Folder

Before you go off and tell me that WinSxS is important to my OS's functionality...
I had a Windows 7 SP1 RC installation, which I sort of wrecked and I had to reinstall the OS over it. Of course, what happened was that the old Windows files were transferred to Windows.old. However, the WinSxS folder of the original installation remained, and lives on at eight gigabytes. When I tried deleting it, either from XP or from the new Win7 installation, I got "Access Denied" or "You Need Permission From TrustedInstaller" respectively.

TrustedInstaller owns the WinSxS folders, and I cannot change the ownership status. I can rename the folder, but not delete it. I have tried to use MoveFile to delete it on bootup, and I'm this close to installing a tiny Linux distributable just to try and delete the folder.  How do I delete this useless, space-eating folder?

To take ownership of the folder, right-click it, select Properties > Security Tab > Advanced at the bottom > Owner Tab > Edit > Highlight your username and put a tick in ‘Replace owner on sub containers…’ and Apply > OK. You will only have the ‘Replace owner on subcontainers…’ box for folders not files. Click Yes when you receive the Security pop-up window then click OK to the Close/Reopen message.

Now go back to the Properties > Security Tab. Click Edit > Add. Type in your User Account Name in the box under Enter the objects name to select. Click on Check Names > OK. Click on your User Account Name to highlight it. Check the box for Full Control > Apply and OK etc.

 

Here are some summarized points of what I understood about how all of it works.

To start by answering the question with the perfect answer posted above. Best advocie is not to touch winsxs. Maybe some of the files can be trimmed like the mp3's, avi's, etc but the rest of the system files should be left alone. I too am using Link Shell Extension as posted above by Ronnie Vernon, easy way to see which are hard linked (red arrow) and which are simple files.

Before getting here I saw in a lot of places people asking for the cleanup tool after installing SP1 for Windows 7 like vsp1cln. There is no dedicated tool, it all got integrated into the Disk Cleanup service. One note that I would make here is that even if the option says it will remove a few hundreds of MB after I cleaned up my drive the service removed around 3GB of excess files, so it varies from system to system. Funny, now I have even more space than I had before installing SP1. Nice one, MS.

Regarding the hard links, I got amused by the confusion created around them. I'm not a linux geek, and I usually use only soft links... they're enough for me, but people didn't get how the hard ones work and how size is counted.

A group of selected files, links or not, will always be counted as a sum. This means that if I take a 10MB file, and make 2 hard links, the selection of all three of them will have 30MB and this is the correct size, because unlike the soft links which are related to the file's original Master File Table entry and have 0 bytes, hard links are related to the data itself, have their own entry in MFT but point to the same data address, obviously having as size the size of the actual data, same times, attributes and so on. Why, below.

How much is left on the drive? Simple: exactly as much as the drive's own properties reports. Don't go selecting all the files, hidden and non hidden on C and making comparisons, or using tools that do that automatically because it won't show the actual HDD usage. Why? Because:

  1. That operation makes a list of all the selected files including hard links as separate files, takes each of them and adds the sizes up, the drives properties counts the actual stored data
  2. Not all the files will be counted, folders protected from traversing and files from reading will not be counted and the System Volume Information usually has very large files protected just in this manner
  3. That number is useful only in cases of file transfer, if the files, links, etc need to be copied to DVD or NAS, that's how much they would occupy, and the links will not be preserved since they are NTFS specific features, not available or available in different forms under ISO, UDF, NFS and other file systems, but they will be cloned.

Make a test... copy a 10MB file, a.exe, from a different drive and notice how the free space drops by the 10MB. Make a hard link (mklink /H b.exe a.exe). Now these two files selected will "use" 20MB in the selection properties, but actually only 10MB verified at the drive's properties, which will have the same free space as it did/does after the file copy. Delete one, either one, the free space will remain the same. Now delete the last one and the space will increase by 10MB. Was there any harm done? NO.

What is winsxs?

A much better dllcache. Where with the dllcache in XP we had copies of files that actually added to the size usage since they were cloned, this actually improves usage but not total protection (against viruses). If a rogue uninstaller thinks it has to remove some runtime libs from System32, it would only delete the links, but not the data, then the links would be recreated while keeping data space usage at lowest possible, better than archiving winsxs in cabs and having the cabs along side the original files. Also winsxs bring serialization, compartmentalizing files with the same name but different version, for the dev's sake, which is a good thing / bad thing, it makes them lazy to code properly but it helps when they don't want to code anymore.

I did this to help anyone that lands here out of the same reasons I did... excessive "usage of space" by winsxs after SP1. And I hope it was helpful.

Read More

Wednesday, December 1, 2010

bench3

Problems Opening .Exe, .Com, And .Lnk File Extensions

Problems While Opening Files with .exe, .com, and .lnk Extensions: When you try to open files with .exe, .com, and .lnk file name extensions, the files will not open and the Open With dialog box is displayed. This problem usually occurs when your computer is running in Safe Mode and these extensions have default registry entries.

Cause of the Error: Problems with these extensions occur if either one or both of the following conditions holds true:
  • The registry entries of the file name extension are either corrupt or missing.
  • Your computer is infected by some type of virus.
Resolution Steps
Warning: The steps discussed below require you to work with the Windows registry. You must be very careful while editing the registry because there is no undo option in Registry Editor and any mistakes in registry edits may render your PC unbootable. This is the reason why, it is recommended that you back up the registry before you make any edits to it
  • 1. Restart you computer.
  • 2. When the computer is starting up, press F8 and then from the options displayed, scroll down and select Safe Mode.
  • 3. When your computer opens is Safe mode, open Start menu, select Run, and then type the following command in the Open box and press Enter.
command /c copy %Windir%\regedit.exe regedit.com
Note: Because of the problem you will be unable to launch the Registry Editor window by running the regedit command because it has the “.exe” extension. Running this command will create a copy of the regedit.exe command with .com extension. And, you can now edit the registry by running the new regedit.com file.
  • 4. After copying the regedit.exe file to regedit.com, open Start menu, select Run, type regedit, and then select OK. This will open the Registry Editor window by running the regedit.com file.
  • 5. In Registry Editor, search for the following registry entries, for the file name extensions that are not working and compare them with same entries on another working computer:
HKEY_CLASSES_ROOT\.< FileNameExtension >
HKEY_CLASSES_ROOT\< FileNameExtension >file
HKEY_CLASSES_ROOT\.< FileNameExtension n>\<SubFolder>
For example if you are unable to open .exe files on your computer, compare the values of the following registry keys with the values of a working computer with similar configuration.
HKEY_CLASSES_ROOT\.com
HKEY_CLASSES_ROOT\comfile
HKEY_CLASSES_ROOT\.com\PersistantHandler
  • 6.  If the registry entries on both the computers is not same, then restore the default values on the computer that is generating the error by doing the following:
    • 1. On the right pane of the Registry Editor window, right-click on the incorrect registry value, and then select Modify.
    • 2. In the Edit StringName dialog box that is displayed, type in the correct value that is available on the working computer, and then click OK.
  • 7. If the problem is still not resolved, navigate to the following registry key, and note down the CLSID number.
HKEY_CLASSES_ROOT\.com\PersistantHandler
Note: Double-click on the value of this key, the CLSID will be in the Value data field, comprising a log set of alphanumeric characters enclosed in braces ({}).

Next, open the following registry key and compare its value with the value of HKEY_CLASSES_ROOT\.com\PersistantHandler key. If these values are different copy the value from the CLSID key and paste it in the Value data box of the PersistantHandler key.
HKEY_CLASSES_ROOT\CLSID\
Read More
bench3

OLE Control Extensions | What Are OCX Files

.OCX - OLE Control Extensions: In the 1990s Microsoft introduced the concept of Object Linking and Embedding, or OLE, to provide interaction among various programs that need to share data. OLE provides various functions, like the ability to drag and drop data between two applications. It also allows users to embed components from one file inside another, thus producing compound documents.

In this architecture, which is part of the Component Object Model or COM, OLE Control Extensions (OCX files) are used to provide control features such as handling scroll bar movement and window resizing. OCX is the second generation of this control architecture, with VBX (Visual Basic Extensions) being the first. This said, the OCX model has been superseded by ActiveX, though backward compatibility is maintained in order to support the previous architecture and applications developed under it.

OCX files frequently are nothing more than Dynamic Link Library files (DLLs) with the special .ocx extension. They contain the custom controls available to a given application. The advantage of this architecture is the same as that provided by the DLL model – it allows developers to create shareable code that can be imported into multiple applications

Users of Microsoft Windows may find many instances of files with the .ocx extension scattered around their PCs. In general, these files are benign and should not be deleted since doing so may render the application to which they're linked inoperable. Obviously it's possible for a malware application to make use of the .ocx extension, and scenarios may exist in which a legitimate OCX file has been hijacked by malware in order to infiltrate a user's machine.

As always, you should obtain and run a reliable malware/virus scanner with a current set of definition files if you suspect your machine has been infected or compromised in any way.
Read More

Wednesday, November 24, 2010

bench3

Features And Benefits Of Compressed Folders

The Compressed Folders feature is available for free from Windows XP Professional and allows you to compress folders, while retaining the ability to view and work with their contents. To create a compressed folder, start Windows Explorer, click File, click New, and then click Compressed (Zipped) Folder. This creates a compressed folder in the current folder. You can drag and drop files into the compressed folder and the files are automatically compressed.

If you copy a file from the compressed folder to another that is not compressed, that file will no longer be compressed. A zipper icon is shown, marking compressed folders, and these folders are labeled Compressed Folder.

Benefits of using compressed folders generated with the Compressed Folders feature include the following:
  • You can create and use compressed files and folders on both file allocation table (FAT) and NTFS volumes.
  • You can open files directly from the compressed folders and you can run some programs directly from compressed folders.
  • You can move these compressed files and folders to any drive or folder on your computer, the Internet, or your network and they are compatible with other zip programs.
  • You can encrypt compressed folders that you created using this feature.
  • You can compress folders without decreasing performance.
  • You can compress individual files only by storing them in a compressed folder. If you move or extract the files into an uncompressed folder, they will be uncompressed.
Read More

Thursday, December 3, 2009

bench3

Change The Icon For All Files Of A Type In Windows 7 And Vista

Every file type has a default icon, the icon shown for all files with filename extensions linked to that type. Yet Windows Vista And Windows 7 offers no way to choose your own icons—apart from editing the Registry directly—despite the fact that you could do this right in Windows Explorer in previous versions of Windows.

The (Default) value in the DefaultIcon key contains the full path and filename of the file containing the default icon. Often it points right to the application executable that uses the file (e.g., excel.exe for .xls files), but sometimes it references a .dll or .ico file containing a bunch of icons. The filename is then followed by a comma and then a number (called the index) that indicates which icon to use.
For example:
C:\Program Files\Photoshop\Photoshop.exe, 15 
points to the file Photoshop.exe, located in the C:\Program Files\Photoshop folder, and references the 16th icon in that file (0 or no number indicating the first icon, 1 indicating the second, and so on).
Occasionally, you may see something like this in the DefaultIcon key:
%SystemRoot%\system32\wmploc.dll,-731
Here, %SystemRoot% is a variable that represents the Windows folder (usually C:\Windows). When the (Default) value in which this information is stored is an expandable string value, Windows converts the filename to C:\Windows\System32\wmploc.dll before retrieving the icon. You may also sometimes notice a negative value following the filename (-731, in this case) which represents the resource ID of the icon to use—as opposed to a positive value indicating the index (position) of the icon as described above.

In most cases, you can specify your own icon for a given file type by placing the full path to an .exe, .dll, .ico, or .bmp file in the DefaultIcon key’s (Default) value. (Hint: there are some nice icons in \Windows\System32\shell32.dll.)

Include a number to indicate which icon to use, or leave out the number to use the first icon in the file. In some cases, Windows Explorer will recognize the change right away, although due to the way Windows Vista or Windows Seven caches icons, you may need to restart Windows for your change to fully take effect.

The easiest way to change an icon for a file type is with a third-party tool like File Type Doctor. (available at http://www.creativelement.com/powertools/)
Read More

Wednesday, December 2, 2009

bench3

Lock Your File Types In Windows 7 And Windows Vista | Do Not Allow Applications To Change Defaults

Tech companies used to spend millions trying to get you to buy their products (OK, they still do), but now the race is on to be “the default.” Microsoft wants its Live Search web site to be the default search engine in IE, and Google sued Microsoft to try to prevent this before Windows Vista shipped.

Companies pay PC manufacturers to preinstall trial versions of their software on all their machines so their products can be the default. And when you install an application on your PC, the installer invariably makes the new program the default for all the file types it supports.

Why is being the default so important? Because people don’t change the defaults. As a result, software companies—Microsoft included—make a habit out of steamrolling over your preferences to promote their own products. Luckily, you have a defense, and it takes place in the Registry.

There are basically two approaches to protecting your file types: you can back them up so they can be restored in case they’re ever overwritten, and you can “lock” them, preventing such changes in the first place.

There’s actually a third way to protect your file types, by way of Vista’s UserChoice feature . It’s not a great solution, but it may be effective in some circumstances.

The easiest way to back up your file types is to create Registry patches as explained in “Create Export and Import Data With Registry Patches”. To make the backup effective, you have to include all the keys.  For instance, if you’re backing up the file type for plain-text (.txt) files, your Registry patch should include all of these keys:
HKEY_CLASSES_ROOT\.txt
HKEY_CLASSES_ROOT\txtfile
HKEY_CLASSES_ROOT\SystemFileAssociations\text

And if you want to include other related filename extensions, such as .log, .ini, and .csv (to name a few), you’ll want to include those keys as well.

So, if your file type associations for text files ever get wiped out, just doubleclick your Registry patch backup to restore them. But you can lock your file types by setting restrictive permissions on the aforementioned keys. That way, no application, no installer, and not even Windows itself can change them unless you unlock them first.

Warning: Most programs and installers won’t have a problem with locked file types; they’ll likely just ignore the error and move on. But it’s not beyond the realm of possibility that an application may crash or refuse to continue until it has all the Registry access it needs. In this case, you may need to unlock the affected file types first, so you’ll want to Back Up The Registry In Windows as described in my earlier post.

To remove the lock, just select a locked file type (you can click the leftmost column header to group all locked file types together) and click the Unlock button.
Read More