English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

It appears you can not "cd" to a lnk file. Using WinXP I copied a folder and pasted the shorcut. As a path name my shortcut would be represened as "C:\foldername.lnk". If I go to a DOS prompt "C:\" and try the command "cd foldername.lnk" i get the error message "The Directory name is invalid". I can cd to other non-linked directories. Does the "CD" command not work with "*.lnk" files (shortcut links)?

2006-10-29 11:02:25 · 3 answers · asked by iMADDawg 1 in Computers & Internet Other - Computers

3 answers

The i-node table structure in Windows XP incorporates new field and file attributes which are not backwards compatible with legacy command interpreters such as that offered by the DOS command prompt. The "CD" command attempts to query the directory attribute only but subsequent revisions of compatible shells know to query the symbolic link n-node immediately after any failed function call to the legacy directory fields - thus providing the extended functionality of enabling directory recursion across a secondary link.

2006-10-29 14:18:33 · answer #1 · answered by Myke BoDean 6 · 0 0

no, *.lnk files are just that - they're files not folders.

in windows when you click them they go to the folder they're a shortcut to because it's a windows feature that's built in.

in dos they're just plain files, so using change directory always fails because you're trying to change directory to a file not a folder.

2006-10-29 19:17:35 · answer #2 · answered by piquet 7 · 0 0

here is how you do. Instead of putting ".ink" just put * like this

foldername* it works like a charm.

try this
C:\>copy foldername* d:\
foldername.lnk
1 file(s) copied.

And also filename ends with .ink you can not do a cd command because it is not a directory or folder. it is just a file. You can either run or copy and stuff.

2006-10-29 19:19:16 · answer #3 · answered by =Jimmy= 2 · 0 2

fedest.com, questions and answers