You are currently offline, waiting for your internet to reconnect

Your browser is out-of-date

You need to update your browser to use the site.

Update to the latest version of Internet Explorer

SHORTCUT.EXE Does Not Accept Pathnames In Command Line

Symptoms
If you use the command line to direct SHORTCUT.EXE to a .LNK file within the directory structure, such as the following command from the command prompt:

SHORTCUT -S C:\DIR1\DIR2\SHCUT.LNK

SHORTCUT.EXE may return an error message similar to the following:
Error: Unable to find C:\DIR1\SHCUT.LNK
Cause
SHORTCUT.EXE does not correctly interpret path names when the -S switch is used.
Workaround
Change to the directory containing the .LNK file before executing SHORTCUT.EXE.
Status
Microsoft Press has confirmed this to be a problem in the books listed at the beginning of this article.We are researching this problem and will post new information as soonas it becomes available.
More information


Steps to Reproduce the Behavior



  1. Create a valid .LNK file as C:\DIR1\DIR2\SHCUT.LNK.
  2. From the C:\ prompt, type SHORTCUT -S C:\DIR1\DIR2\SHCUT.LNK.
    The following error message will be displayed:
    Error: unable to find C:\DIR1\SHCUT.LNK
  3. From the C:\ prompt, type SHORTCUT -S \DIR1\DIR2\SHCUT.LNK.
    The following error message will be displayed:
    Error: unable to find \DIR1\DIR2\SHCUT.LNK
  4. From the C:\ prompt, type CD \DIR1\DIR2.
  5. Type SHORTCUT -S SHCUT.LNK. No error will be displayed.
RKBOOK NT40 WIN95 RESKIT TOOLS RESOURCE KIT
Properties

Article ID: 254493 - Last Review: 06/19/2014 07:09:00 - Revision: 2.0

  • kbprb KB254493
Feedback
')[0].appendChild(m);" onload="var m=document.createElement('meta');m.name='ms.dqp0';m.content='false';document.getElementsByTagName('head')[0].appendChild(m);" src="http://c1.microsoft.com/c.gif?">