Solved

search for all shortcut files and change target it

Posted on 2014-03-18
11
218 Views
Last Modified: 2014-04-25
Hi, i have one program that went to all shortcut files of google chrome and put on the target to open an website first, so the target instead of been just the path of google chrome.exe have this website in front of it. So i want to create one program that goes and find all shortcut on my computer and put everything back to normal, so the path will be just the chrome.exe file. pls help me creating this function.

C:\Users\Admin\AppData\Local\Google\Chrome\Application\chrome.exe http://www.portaldosites.com/?utm_source=b&utm_medium=cor&from=cor&uid=SAMSUNGXSP2514N_S08BJ10L335043&ts=1370130111
0
Comment
Question by:rafaelrgl
  • 6
  • 2
11 Comments
 
LVL 13

Expert Comment

by:Chris Raisin
ID: 39938781
The program has probablably changed your default browser from chrome.exe to another browser. Have you actually ckeced each shortcut? If the name of the "rogue" program is in front of the html/htm address of the icon, then you certainly need something to change these addresses for you, but if the name of the rogue program is not there, then the DEFAULT program for opeing HTML/HTM files is all that has been changed.

You can physically change this by going to the Control Panel/Default Programs/Associate a filetype (Windows 7)

If the rogue program IS ACTUALLY NAMED IN THE SHORTCUTS, I will look at  program code to change them for you.
0
 
LVL 13

Expert Comment

by:Chris Raisin
ID: 39938859
Why has this been moved? It can be solved in VB.Net
0
 
LVL 13

Expert Comment

by:Chris Raisin
ID: 39939274
Oops! Sorry...I misread your comment...apologies.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39940082
What are you trying to achieve? Default home page?
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 13

Expert Comment

by:Chris Raisin
ID: 39941313
Please clarify exactly what you are after?

Is it to change each shortcut which has had it's command line changed to call another browser, or has your home page simply changedwithin your brower?

Or is the situatuion now in place where whenever you call a "html/htm/php" file via a shortcut that the wrong browser opens it?

If the former is the case it would help to look at one of your desktop icons. If you can screen grab it would be good (as per following example). I need to know the name of the programming that is opeing up the web pages.

Screen grab of desktop icon (shortcut)
0
 
LVL 1

Author Comment

by:rafaelrgl
ID: 39966651
it is to change each shortcut which has had it's command line changed to call google chrome with an website in front of it just like the sample line bellow:

C:\Users\Admin\AppData\Local\Google\Chrome\Application\chrome.exe http://www.portaldosites.com/?utm_source=b&utm_medium=cor&from=cor&uid=SAMSUNGXSP2514N_S08BJ10L335043&ts=1370130111

instead of been just this:
C:\Users\Admin\AppData\Local\Google\Chrome\Application\chrome.exe

the program change and put some website in front of it. so the shortcut opens this website.
http://www.portaldosites.com/?utm_source=b&utm_medium=cor&from=cor&uid=SAMSUNGXSP2514N_S08BJ10L335043&ts=1370130111
0
 
LVL 13

Expert Comment

by:Chris Raisin
ID: 39967741
That seems very strange.

Surely you do not have a lot of shortcuts that just have the "chrome" executable as its target?

Are you sure that the shortcuts did not have another web-pgae as its target (or "chrome" plau another website as its target?)

I can certainly give you something to change all the shortcuts to just call chrome, but why would you have that?
0
 
LVL 1

Author Comment

by:rafaelrgl
ID: 39968974
well, the problem is that i am so mad with this behavior of my webbrowser that i was considering format the windows and install an new one, but i have others licence programs to this machine. then i did think that i could go and find each google chrome shortcut and change to just the .exe and delete the site in front of it, so when i open it will open blank page. that's why.
0
 
LVL 13

Accepted Solution

by:
Chris Raisin earned 500 total points
ID: 39969034
It looks to me like you have an infection (malware or something like that) in your browser.
I would suggest you uninstall your browser then re-install it (or better still try out a new browser, such as Maxthon).

Give that a go first then we can look at producing code to "clean" up your shortcuts.
The problem is (of course) if it is a virus/malware infection, then after we clean up the shortcuuts they may all change back again!

Let me know how you go. :-)

Cheers
...Chris
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now