what is the command line to delete shortcuts

Page 3 of 4 FirstFirst 1234 LastLast

  1. Posts : 416
    Win10 32bit v20H2
    Thread Starter
       #21

    Dennis - I really appreciate your help and attempt to teach me, but I have to insist that I DID delete those extensions. I agree with you that that conflicts with my statement of success, so I can only deduce that my deletions were illusory - there was some kind of 'preservation' happening 'under the bonnet' - but the entries in the relevant folder DEFINITELY VISIBLY lack extensions - and that is so because I (tried to) MANUALLY delete them. So the effect apparently was to hide them, but the action was DELETION.
      My Computer


  2. Posts : 16,966
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #22

    .lnk file extensions are hidden by default in File explorer.
    And this has nothing to do with the File explorer setting about hiding file extensions.
    Some people have referred to .lnk file extensions as being 'SuperHidden'.
    You would need to have edited the Registry to have ever seen them in File explorer.

    This command removes the extension from an .lnk shortcut and File explorer will then state its Type as File.
    Code:
    Ren SomeShortcutOrOther.lnk SomeShortcutOrOther

    Denis
      My Computer


  3. Posts : 416
    Win10 32bit v20H2
    Thread Starter
       #23

    Another mistake - what I deleted was not '.lnk', but the word 'shortcut' along with the extension before it.
      My Computer


  4. Posts : 16,966
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #24

    Oh, right.

    I often do the same.
    A shortcut called
    Summary of procedure
    is easier to spot & to comprehend than one called
    Summary of procedure.pdf - Shortcut.


    Denis
      My Computer


  5. Posts : 416
    Win10 32bit v20H2
    Thread Starter
       #25

    We can go into Easter in agreement finally - me grateful, and you frustrated.
      My Computer


  6. Posts : 16,966
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #26

    No, I'm just happy that you now know what you did.


    Denis
      My Computer


  7. Posts : 14,034
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #27

    Sebastian42 said:
    Try3
    MY MISTAKE to say that the entries and not the extensions are hidden.

    However - I did NOT change the 'hide' settings, and I DID delete the extensions.
    In Folder Options; View tab 'Show hidden files, folders and drives' is selected - and has been for years.

    - - - Updated - - -

    Berton - I'm with you 100%, and was also a Windows 3.1 user.

    And since you mention DOS - my favourite Word processor is STILL Word Perfect for Dos v5.1+,
    but I do use WORD where it has a desirable feature that Word Perfect lacks - that does not happen often.
    I've always had WP since 'back then' when I took classes at the college for DOS and WP in '92, [community education]. A week after I retired in '94 got a part-time job in a computer store, turned full-time and building/repairing computers ever since.
      My Computers


  8. Posts : 1,223
    W10-Pro 22H2
       #28

    Sebastian42 said:
    We can go into Easter in agreement finally - me grateful, and you frustrated.
    Wouldn't this have been so much quicker and easier if you had posted a screenshot of a directory listing from a command prompt?
      My Computer


  9. Posts : 416
    Win10 32bit v20H2
    Thread Starter
       #29

    'directory listing from a command prompt?' It MIGHT have been quicker.
    I'm not aware of using a command prompt to get a directory listing.

    In case you want to bring me up to speed on that, it might solve for me my next hurdle, namely, the command line (batch file code) to copy all desktop shortcuts to a folder of choice.
      My Computer


  10. Posts : 1,223
    W10-Pro 22H2
       #30

    Sebastian42 said:
    'directory listing from a command prompt?' It MIGHT have been quicker.
    I'm not aware of using a command prompt to get a directory listing. In case you want to bring me up to speed on that, it might solve for me my next hurdle, namely, the command line (batch file code) to copy all desktop shortcuts to a folder of choice.
    I thought of doing so above, but then thought 'too obvious'. Here is one of mine from a folder with shortcuts (some renamed):
    what is the command line to delete shortcuts-dir-command.png
    Simply type 'dir' at the prompt.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:21.
Find Us




Windows 10 Forums