Windows shortcut target location




















I do not understand why you insist on saying that I have said something that I clearly have not. It was you that stated, and I quote, " THe iissues are that, when the shortcut is a web url not an lnk file then the WScript.

At no point have I ever stated that the WScript. Shell cannot "read the shortcut". In fact, I have provided code showing that WScript.

Shell can read the shortcut. What I have stated is " When the shortcut is a. If you can prove my statement to be inaccurate, then please do so. In order to do so, you would have to:. There is no question that the shortcut was created in a way that is different than you are expecting it to be created since it was created with the.

The shortcut created by the original poster; however, does still work in the Windows Environment. Regardless of that fact. The question the original poster asked is not, am I creating this shortcut differently than jrv would do it. It's not even asking, am I creating this shortcut incorrectly. It's asking: " how come it does not return the target path for all non-editable shortcuts?

The answer to that question is, because WScript. Shell cannot read the TargetPath property on the. Additionally, if they want to read the TargetPath of the. A link file has an extension of "lnk". A url file has an extension of "url" and a website file has an extension of "website". The shell cannot read web files filename.

The Shell. Application object cannot read these files. There is no need to use the shell application object. That is what I posted. Your code may work for a couple of things but is mostly unnecessary. Also the OP only looks for "lnk" files. It is possible to create a LNK file with a web url but it will not behave correctly. So take some time to do more research. We all know about the "meta-properties" of files.

Most file elements are exposed as meta-data in the properties details. This doesn't really help in this situation even though it allows you to read those properties.

But why? The shortcut object of Script works just fine. I actually cannot find the statement above in any post you have created in this thread. Button as well. Sign up to join this community. The best answers are voted up and rise to the top.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How do I find the location of a shortcut's icon in Windows 10? Ask Question. Asked 2 years, 1 month ago. Active 1 year, 11 months ago. Viewed 13k times. Improve this question. GregH GregH 7 7 gold badges 16 16 silver badges 27 27 bronze badges. Add a comment. Active Oldest Votes. So I went via the command line: Open a "Command Prompt" by typing "cmd" in the start search and selecting "Command Prompt" Navigate to the location of your.

I want to change the shortcut's properties. In the old days, before Vista, I right-clicked the shortcut and edited the target location and command line, etc. When I right-click on this shortcut, everything is hidden. I do now know what parameters it's passing. I can find the target file by watching the Task List while double-clicking the shortcut.

But I need to see the exact command line so that I know what parameters it's passing to the program and what environment variables it's setting up. I cannot do that since Vista has seen fit to hide all of this information from me even though I am the administrator and only user.

I have looked throughout the shortcut's properties box and cannot find this information. But it seems the times they may be a changing. I recently installed iTunes on a new PC. Can you help decode all this? Since the application opens slower than cold molasses, can this be some sort of web address? Is this the future of shortcuts? Your email address will not be published.



0コメント

  • 1000 / 1000