Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Verify path\filename of a shortcut
I was initially going to post this as a question, but I discovered an answer
in the meantime:

How to verify the path\filename of a shortcut (without launching the
shortcut):

We have an app that launches on startup using a shortcut in the Start
Menu\Startup folder. During our maintenance activities, we don't want this
app to launch on windows startup, and the system is not always attended to
(since we're usually working on multiple systems). We've found that renaming
the target file (from .exe to .ex) is the easiest method for preventing the
app from launching.

This works fine, except that someone added a seemingly advantageous (yet in
reality, a very stupid) feature to Windows XP. This "feature" actually allow
s
the shortcut to "take a guess" at which target file it should use if it's
original target file is no longer available. I don't know what the criteria
is for this "feature", but after serveral reboots, the shortcut decides to
use a different file (in the same folder).

In any case, we have a VB app that we run to verify settings, and I needed a
way to make sure that the shortcut hasn't been "featurized". The solution is
simple: Open the shortcut as a text file. The path is readable among the
garbage.

Maybe this will help someone. In the meantime, I would like to hear of any
comments about this XP shortcut "feature".

--
Bill Baker

Report this thread to moderator Post Follow-up to this message
Old Post
Bill Baker
09-29-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Basic archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:39 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.