Winhelponline.com

Blogs

(Page 1 of 2)   
« Prev
  
1
  2  Next »

Thought it's a good time to post the site statistics.

Report generated on Dec 19, 2007 by AWStats.

A question which I came across recently...

I go to Start, Run and type in "cmd", I get an Open With prompt window that asks me to

Choose the program you want to use to open this file: File: cmd

I've used the "Browse" button to locate the Windows Command Processor, but I have to select it from the list of "Program." The "Always use the selected program to open this kind of file" check box is grayed out. I don't even know why Windows has decided cmd is a file to be opened by an external application.

This problem happens if there is a file named CMD in your profile folder, and Windows tries to execute it when you type CMD (without the .exe suffix, the file extension) in Start, Run dialog.

Click Start, Run and type:

%comspec% /k dir "%userprofile%\cmd*" /s

Press {ENTER}

This lists files within your profile directory which contain cmd in the file name . Spot the files which contain the names (CMD, CMD.EXE, CMD.COM, CMD.BAT) located within your user profile path and rename them or move them somewhere else.

If those files appeared in your user profile folder without you doing anything, then it's a good idea to run a thorough scan for Viruses and other Malware.

When you type CMD in Start-Run dialog, Windows searches for the file in the following locations in the same order given, and executes the first one found:

  • Your user profile folder
  • Checks the App Paths registry key
  • Searches all the folders included in the PATH variable

The search order may vary depending upon the Operating System you use, and the Service Pack level of your system.

Note: The problem was fixed when the user removed a 0-byte file named cmd in his profile folder. If you run across a similar situation at some time, this blog entry should help.

Unable to assign Acceleration Key for an Action

I have found what I consider to be a bug in Windows XP. It would affect almost no one, but still a bug. As an example, assume that Microsoft Word is already installed and a person installs the Microsoft Word Viewer also.

  1. Open Control Panel/Folder Options/File Types tab.
  2. Select a file extension. (Say .doc)
  3. Click Advanced and the Edit File Type dialog box opens.
  4. Select New button and the New Action dialog box opens.
  5. In the Action: text box, type &View (with the intent that the keyboard shortcut for this is Alt+V)
  6. In Application used to perform action:, type the path to wordview.exe
  7. Select OK to close the New Action dialog box.
  8. Select OK to close the Edit File Type Box.
  9. Select OK to close the Folder Options Box.
  10. In Windows Explorer, right click a .doc file. The context menu will show &View instead of View.

Does this happen to others?

--Paul

Workaround

Hi Paul, Yes! You've found a bug in the Windows XP File Types dialog. I can reproduce the problem exactly, but have a workaround for this issue.

When you type the name of the new Action (in Step 5 above), add a blank space after the action. For example, type "&View " instead of "&View" (without quotes). Or, type a multi-word string (such as "Open with Word &Viewer") in the Action text box. This circumvents the problem.

Another workaround is to edit the registry and set the file type description manually. This can be done by modifying the (default) value in the file type's ProgID, which is located here:

[HKEY_CLASSES_ROOT\<ProgID>\shell\&View]

Where <ProgID> is the actual ProgID for that file type. To better understand what ProgID is, have a look at the graphic below:

Here are some ProgID examples: txtfile, jpegfile, giffile, Wordpad.Document.1, xmlfile and so forth.

Although I have a graphics card (NVIDIA GeForce 7300 LE) which supports Aero, slideshows always run in Basic mode in my Windows Vista (Ultimate) RTM system. The Help and Support indicated that the slide show theme controls only appear if the WinSAT score is atleast 3.0. Mine is rated as low as 2.8 (Graphics system being the poor scorer).

WinSATScore registry value

Soon after seeing RegMon query the WinSATScore registry value (non-existent by default), I Googled it and saw the excellent tweak posted at the Microsoft Photography Blog. It suggested that in order to get the entire Theme set for slideshows, one may try boosting the WinSAT score virtually, by creating/altering the WinSATScore value.

HKEY_CURRENT_USER\Software\Microsoft\Windows Photo Gallery\SlideShow

In the above key, I create a new DWORD (32-bit) value named WinSATScore and assigned 300 as the Value data, and closed Registry Editor.

Voila! The slideshow themes magically appeared, and all the themes worked fine in my system. Of course, there is no guarantee that this tweak with work with every graphics card on the market.

Note: If one or more of the slideshow theme does not work for you, you may want to check if your graphics card supports Vertex Shader 2.0 property or not. Here is an excerpt from Help and Support:

In order to see your slide show with high-quality visuals (including videos, themes, and transitions), you need to have a subscore of 3.0 for the Graphics category in the Windows Experience Index. Some themes also require your computer’s graphics card to have a feature called Vertex Shader 2.0. To take advantage of all slide show capabilities, you might need to upgrade to a more powerful graphics card. For more information, see Ways to improve your computer's performance.

Here is the list of Slideshow Themes available:

  • Classic
  • Fade
  • Pan and zoom
  • Black and white
  • Sepia
  • Album
  • Collage
  • Frame
  • Glass
  • Spin
  • Stack
  • Travel

After performing a clean install of Windows Vista Ultimate RTM (Build 6000), I downloaded the NVIDIA driver 97.46 (current version, as of this writing) for my NVIDIA GeForce 7300 LE graphics card. Well, here is what I saw when I tried to install the drivers:

Setup detected that the operating system in use is not Windows Vista. This setup program and its associated drivers are designed to run only on Windows Vista. The installation will be terminated.

When browsing NVIDIA user forums for solution, people advised that this is a known problem, and that the International drivers (97.46_forceware_winvista_x86_international_whql.exe) should work fine. I downloaded the international drivers (~50 MB), emptied the NVIDIA folder in the C:\ drive (this folder was created when I ran the setup earlier, which then failed), and ran the international driver (97.46_forceware_winvista_x86_international_whql.exe). This resulted in the same error as above.

When I contacted NVIDIA support, they asked me to download the international drivers, even though I already stated in the original inquiry that I've tried both the drivers. I just downloaded it again as the techs told me that I may have downloaded a different version of the "international" driver.

So I downloaded the 50 MB file again, and installing it resulted in the same error. The techs asked me if I'm using Vista RTM (note that I've provided the entire system specs in the original inquiry.) This case prolonged for a week and no solution was arrived at. NVIDIA techs had no clue, and informed me that they would notify me when they find an answer to this problem.

I desperately needed the Vista drivers because the text in my LCD monitor (Samsung SyncMaster 940BW) was extremely blurry as it was running in a non-native resolution, giving me a mild headache. 940BW's native resolution is 1440x900, but that aspect ratio was missing in the Display Properties.

Manual installation worked!

Thanks to an user at the NVIDIA forums who hinted me about manual installation using INF file. That info was the ticket. The setup program extracted the drivers / supporting files to the C:\NVidia folder. Here is what I did and it worked!!

  • Open Device Manager (devmgmt.msc)
  • Double-click Display Adapters
  • Right-click on the graphics adapter listing, and choose Update Driver Software...
  • Select Browse my computer for driver software in the next screen
  • Mention the path where the driver files were extracted by the NVIDIA setup program. This is usually C:\NVIDIA\WinVista\97.46

Voilà! The driver installation was successful! And the 1440x900 aspect ratio magically appeared in the Display Properties. No more blurry text now. I hope that proposed solution above helps many others, as well.

It's quite surprising to see how the techs at NVIDIA missed this manual installation option, and how quickly they gave up on this matter. IMHO, there is certainly a scope for improvement on their side!

Q:    I used to be able to hold my mouse over a folder and a balloon would pop with the size of contents and number of files. I think I shut this function off just can't remember how. Looked in TweakUI but couldn't see anything. Anyone know what I'm talking about?

A:    Yes. Follow these steps to enable the folder contents infotip

  • Click Start, Run and type CONTROL FOLDERS
  • In the View tab, enable these two options:
     
    • Display file size information in folder tips
    • Show pop-up description for folder and desktop items
       
  • Click Apply, OK.

Note that both the above checkboxes need to be enabled in order to view the folder contents infotip.

This week I came across the following question, which I'd like to share with you:

Any file on my computer that ends in .gif gives the message "Access is denied." when I try to open it. If I rename the file to .jpg or something else, it opens fine (though that's not a good thing to do, obviously). Any other image file opens fine, and if I rename one of them to .gif and try to open it, I get "Access is denied." And it's not just image files. Any file that opens with no problem, when renamed to .gif and opened, results in "Access is denied."

The file association information for .GIF file type is given below by the asker.

[HKEY_CLASSES_ROOT\.gif]
"PerceivedType"="image"
@="giffile"
"Content Type"="image/gif"

[HKEY_CLASSES_ROOT\.gif\OpenWithProgids]
"giffile"=hex(0):

[HKEY_CLASSES_ROOT\.gif\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"

[HKEY_CLASSES_ROOT\giffile]
@="GIF Image"
"BrowserFlags"=dword:00000008
"EditFlags"=dword:00010000
"FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\
32,00,5c,00,73,00,68,00,69,00,6d,00,67,00,76,00,77,00,2e,00,64,00,6c,00,6c,\
00,2c,00,2d,00,33,00,30,00,32,00,00,00
"ImageOptionFlags"=dword:00000003

[HKEY_CLASSES_ROOT\giffile\CLSID]
@="{25336920-03F9-11cf-8FD0-00AA00686F13}"

[HKEY_CLASSES_ROOT\giffile\DefaultIcon]
@="shimgvw.dll,2"

[HKEY_CLASSES_ROOT\giffile\shell\open]
@="Animate"

[HKEY_CLASSES_ROOT\giffile\shell\open\command]
@="\"D:\\Program Files\\msgif\\GIFAnimator.exe\" \"%1\""

[HKEY_CLASSES_ROOT\giffile\shell\open\ddeexec]

[HKEY_CLASSES_ROOT\giffile\shell\open\ddeexec\Application]
@="shimgvw"

[HKEY_CLASSES_ROOT\giffile\shell\open\ddeexec\Topic]
@="System"

[HKEY_CLASSES_ROOT\giffile\shell\Paint]

[HKEY_CLASSES_ROOT\giffile\shell\Paint\command]
@="\"%SystemRoot%\\System32\\mspaint.exe\" \"%1\""

After examining the settings carefully, I spotted atleast one error in the GIF file association setting.

[HKEY_CLASSES_ROOT\giffile\shell\Paint\command]
@="\"%SystemRoot%\\System32\\mspaint.exe\" \"%1\""

In the above key, the (default) value type is REG_SZ, but the existing data contains expandable values / environment strings. If you need to use expandable values such as %Windir%, %Systemroot% etc, you should use the REG_EXPAND_SZ value type.

The "Access is denied" error was then resolved by changing the above entry (into already expanded format) directly in the registry.

"%SystemRoot%\System32\mspaint.exe" "%1"

becomes

"C:\Windows\System32\mspaint.exe" "%1"

Q:    Is it is possible to change the icons for the right-panel of the Start Menu in Windows XP Pro. (the icons for My Documents, My Computer, Network Places, Printers & Faxes and others) ?

I know that certain visual styles software like Windows Blinds can do this too. I was wondering if one could do this without the use of such programs. A way to do this through the registry would be welcome. Thanks..

A:    You can set the icons for special folders in the following key (per-user override)

HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ CLSID \ {GUID} \ DefaultIcon

Where {GUID} is the Globally Unique Identifier pertaining to a special folder. The {GUID} for various special folders are given below. Note that you need to create the registry keys up to that level above, for each special folder for which you want to customize the icon.

My Computer {20D04FE0-3AEA-1069-A2D8-08002B30309D}
My Documents {450D8FBA-AD25-11D0-98A8-0800361B1103}
Network Connections {7007ACC7-3202-11D1-AAD2-00805FC1270E}
Printers & Faxes {2227A280-3AEA-1069-A2DE-08002B30309D}
My Network Places {208D2C60-3AEA-1069-A2D7-08002B30309D}
Set Program access and Defaults {2559A1F7-21D7-11D4-BDAF-00C04F60B9F0}
Control Panel {21EC2020-3AEA-1069-A2DD-08002B30309D}
Recycle Bin {645FF040-5081-101B-9F08-00AA002F954E}
Internet Explorer {871C5380-42A0-1069-A2EA-08002B30309D}

FYI, the icon for the My Pictures folder comes from the Desktop.ini file present in that folder. So you need to alter the Desktop.ini file to change My Pictures folder icon.

Q:  Is there a way to create a batch file which would put a desktop icon onto the desktop which invokes an html page in a web browswer (MSIE) and change the associated icon for that particular desktop item, all in one batch file? Thanks

A: Yes. This is possible. Here are some examples:

--------------------Launches a HTML page---------------
echo [InternetShortcut] >"%userprofile%\desktop\localpage.url"
echo URL=C:\myfile.htm >>"%userprofile%\desktop\localpage.url"
echo IconFile=C:\favicon.ico >>"%userprofile%\desktop\localpage.url"
echo IconIndex=0 >>"%userprofile%\desktop\localpage.url"
------------------------------------------------------------
--------------------Launches a website--------------------
echo [InternetShortcut] >"%userprofile%\desktop\google.url"
echo URL=http://www.google.com/ >>"%userprofile%\desktop\google.url"
echo IconFile=e:\Backups\google.ico  >>"%userprofile%\desktop\google.url"
echo IconIndex=0 >>"%userprofile%\desktop\google.url"
------------------------------------------------------------

Q:  The article How to automatically delete folders that are n days old? is so useful. I have sub-folders such as the following:

  • D:\Reports\20051101
  • D:\Reports\ABC_20051101
  • D:\Reports\20051102
  • D:\Reports\ABC_20051102

I need to delete the folders which begin with the letters ABC. I used the same script as you suggested, but, I'm not able to delete the folders because there is no Select query. My requirement is to delete the folders start with the ABC name and the folders should be 2 days old. --Thanks, Gayatri

A: The same script can be modified slightly to accomplish this. In the last part, you may add a line of code to check if the first three characters of the folder contain string ABC.

For Each fName in fNameArray
    'This line checks if the first three chars are "ABC". If so, deletes the folder
    If left(fName,3) = "ABC" then
        FSO.DeleteFolder(BasePath & "\" & fName)
    End if
Next

Note that the above snippet is only a part of the actual code, available at this link.

(Page 1 of 2)   
« Prev
  
1
  2  Next »
No blogs found.