Jump to content
Sign in to follow this  
Magbc

Desktop icons do not open programs

Recommended Posts

Magbc   

Compaq Presario Desktop, P4, 2gb memory

 

I have been having a problem with my programs not opening when I click the icons or the program names (firefox, windows mail etc). Instead of opening as usual now a window opens and asks what program I want to use to open with. Browsers and most programs are easy enough to find but I tried to run System Restore to fix it and the window asks what program it should use to open RSTRUI.EXE. What program do I use to run Restore? Or how do I fix it so the computer knows which program to use by itself?

 

Magbc

Share this post


Link to post
Share on other sites
TomGL2   

I have been having a problem with my programs not opening ... Instead of opening as usual now a window opens and asks what program I want to use to open with

Always mention the version of Windows you're running.

 

This problem is generally the aftermath of a malware infection.  Paste this text into Notepad.

 

Set WshShell = WScript.CreateObject("WScript.Shell")

With WScript.CreateObject("WScript.Shell")

 

' --- EXE

 

extKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.exe\"

shellStr = "exefile"

shellKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\open\command\"

execStr = """%1"" %*"

 

WshShell.RegWrite extKey, shellStr

WshShell.RegWrite shellKey, execStr

 

End With

 

msgText = "EXE association is restored."

endBox = MsgBox(msgText, 4096, " Done")

 

Save the file as "FixExe.vbs" (include the quotes around the filename).  Double-click the file to restore the default setting.

 

EDIT:  VB script corrected

Edited by TomGL2

Share this post


Link to post
Share on other sites
Magbc   

Thanks TomGL2,

 

Sorry, Win Vista Home Basic is the Op System

 

I typed in "Notepad" in the Start search box and now it is asking what file do I want to use to open Notepad. What is the file called and where is it located?

 

Magbc

 

 

 

Always mention the version of Windows you're running.

 

This problem is generally the aftermath of a malware infection.  Paste this text into Notepad.

 

Set WshShell = WScript.CreateObject("WScript.Shell")

With WScript.CreateObject("WScript.Shell")

 

' --- EXE

 

extKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.exe\"

shellStr = "exefile"

shellKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\open\command\"

execStr = """%1"" %*"

 

WshShell.RegWrite extKey, shellStr

WshShell.RegWrite shellKey, execStr

 

msgText = "EXE association is restored."

endBox = MsgBox(msgText, 4096, " Done")

 

Save the file as "FixExe.vbs" (include the quotes around the filename).  Double-click the file to restore the default setting.

 

Share this post


Link to post
Share on other sites
TomGL2   

Use another computer to create the file, and save it to a USB flash drive.  Plug the flash drive into the Presario.  While pressing the Windows key (usually labeled with the Microsoft flag or "Start"), tap the R key to open the Run dialog.  Browse to the flash drive.  Type FixExe.vbs in the File name box and click Open, then click OK.

 

--- OR ---

 

Right-click a clear spot on the Desktop, point to New, and click Text Document.  Double-click the file to open it in Notepad.  Copy and paste the text, then click File and Save As.  Select the Desktop in the Save in List.  Type "FixExe.vbs" (including the quotes) as the file name, then click Save.  Close Notepad.

 

Double-click FixExe.vbs on the Desktop.

Edited by TomGL2

Share this post


Link to post
Share on other sites
Magbc   

TomGL2,

Windows Script Host came back with the following error:

 

Script: C:\Users\Desktop\Fix.Exe.vbs.vbs

Line 16

Char: 1

Error: Expected 'End'

Code" 800A03F6

Source: Microsoft VBScript compilation error

 

 

What did I do wrong?

 

Magbc

 

 

 

Use another computer to create the file, and save it to a USB flash drive.  Plug the flash drive into the Presario.  While pressing the Windows key (usually labeled with the Microsoft flag or "Start"), tap the R key to open the Run dialog.  Browse to the flash drive.  Type FixExe.vbs in the File name box and click Open, then click OK.

 

--- OR ---

 

Right-click a clear spot on the Desktop, point to New, and click Text Document.  Double-click the file to open it in Notepad.  Copy and paste the text, then click File and Save As.  Select the Desktop in the Save in List.  Type "FixExe.vbs" (including the quotes) as the file name, then click Save.  Close Notepad.

 

Double-click FixExe.vbs on the Desktop.

 

Share this post


Link to post
Share on other sites
TomGL2   

Windows Script Host came back with the following error:

 

Script: C:\Users\Desktop\Fix.Exe.vbs.vbs

Line 16

Char: 1

Error: Expected 'End'

Sorry, my error; one statement didn't survive copy & paste.

 

Set WshShell = WScript.CreateObject("WScript.Shell")

With WScript.CreateObject("WScript.Shell")

 

' --- EXE

 

extKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.exe\"

shellStr = "exefile"

shellKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\open\command\"

execStr = """%1"" %*"

 

WshShell.RegWrite extKey, shellStr

WshShell.RegWrite shellKey, execStr

 

End With

 

msgText = "EXE association is restored."

endBox = MsgBox(msgText, 4096, " Done")

 

Copy the text above, right-click FixExe.vbs and click Edit, delete the existing text, paste the new text.  Click File, Exit, and Yes to save.  Double-click to execute.

Share this post


Link to post
Share on other sites
Magbc   

TomGL2,

 

Now the Windows script host says:

 

Line: 11

Char: 1

Error: Permission denied

Code: 800A0046

Source: Microsoft VBScript runtime error

 

Magbc

 

Sorry, my error; one statement didn't survive copy & paste.

 

Set WshShell = WScript.CreateObject("WScript.Shell")

With WScript.CreateObject("WScript.Shell")

 

' --- EXE

 

extKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.exe\"

shellStr = "exefile"

shellKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\open\command\"

execStr = """%1"" %*"

 

WshShell.RegWrite extKey, shellStr

WshShell.RegWrite shellKey, execStr

 

End With

 

msgText = "EXE association is restored."

endBox = MsgBox(msgText, 4096, " Done")

 

Copy the text above, right-click FixExe.vbs and click Edit, delete the existing text, paste the new text.  Click File, Exit, and Yes to save.  Double-click to execute.

 

Share this post


Link to post
Share on other sites
Jacee   

Let's try to restore your file extensions. You must have left a check mark in "always open with this program".

 

In this article http://www.winhelponline.com/articles/105/...dows-Vista.html

You can 'fix' the association by following the 'merge' instructions.

 

***Note that you need to be an administrator (or run as Administrator in right click drop down) to apply these fixes.

 

By the way, Notepad's extension is %windir%\system32\notepad.exe

Share this post


Link to post
Share on other sites
TomGL2   

Now the Windows script host says: Error: Permission denied

You need to be logged on to an account with administrator's rights.  Or, open a command prompt as administrator (see below).  Drag Fix.Exe.vbs into the window, click anywhere in the window, then press Enter.

 

Click the Start button .

 

In the Search box, type command prompt.

 

In the list of results, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

 

windows.microsoft.com/en-us/windows-vista/Command-Prompt-frequently-asked-questions

Share this post


Link to post
Share on other sites
Magbc   

TomGL2 and Jacee,

 

Thanks for your help. The command prompt worked and all the icons appear to do what they are supposed to.

 

Magbc

 

 

 

<!--quoteo(post=1682184:date=3:31pm Fri May 7 2010:name=Magbc)--><div class='quotetop'>QUOTE(Magbc @ 3:31pm Fri May 7 2010) 1682184[/snapback]</div><div class='quotemain'><!--quotec-->Now the Windows script host says: Error: Permission denied<!--QuoteEnd--></div><!--QuoteEEnd-->You need to be logged on to an account with administrator's rights.  Or, open a command prompt as administrator (see below).  Drag Fix.Exe.vbs into the window, click anywhere in the window, then press Enter.

 

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Click the Start button .

 

In the Search box, type command prompt.

 

In the list of results, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

 

<a href="http://windows.microsoft.com/en-us/windows-vista/Command-Prompt-frequently-asked-questions" target="_blank"><!--coloro:#0000FF--><span style="color:#0000FF"><!--/coloro-->windows.microsoft.com/en-us/windows-vista/Command-Prompt-frequently-asked-questions<!--colorc--></span><!--/colorc--></a><!--QuoteEnd--></div><!--QuoteEEnd-->

 

Share this post


Link to post
Share on other sites
TomGL2   

Do these instructions apply to Windows XP also?

Yes, for the most part.  Use another computer to create FixExe.vbs, then save the file to a flash drive.

 

Power down the problem computer if it's running.  Plug in the flash drive containing FixExe.vbs and power up the computer.  Begin tapping the F5 key before Windows starts to load, and when the Advanced Options menu appears, use the arrow keys to highlight Safe Mode, then press Enter.

 

When the Welcome screen appears, log on to the Administrator account, and click Yes to continue.

 

Click Start and Run, then click Browse.  Click the down-arrowhead to the right of Look in, and click the flash drive icon.  Click FixExe.vbs and click Open, then click OK.

 

Click OK at the completion message, then restart the computer normally.

Share this post


Link to post
Share on other sites
ghasu143   

I have same problem with my sony vaio laptop, with windows 7 OS.

I tried with this process but showing permission denied with error code.

 

waiting for reply

 

Ghasu143

Share this post


Link to post
Share on other sites
TomGL2   

with windows 7 OS. I tried with this process but showing permission denied with error code.

From post #9:

Click the Start button .

 

In the Search box, type command prompt.

 

In the list of results, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

An elevated command prompt should now be open.  To run the script, use one of the methods below.

 

(1)  Drag FixExe.vbs into the command prompt window, then click anywhere in the window, and press Enter.

 

(2)  If FixExe.vbs is stored on a flash drive, type the full path and filename, then press Enter.  For example, if the flash drive letter is E, you would type E:\FixExe.vbs.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×