Can’t copy shortcut?

BatchPatch Forums Home Forums BatchPatch Support Forum Can’t copy shortcut?

  • This topic has 3 replies, 2 voices, and was last updated 3 years ago by doug.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13113
    ExhaustedTech
    Participant

    I don’t know if this is a BP limitation or Windows but I’m hoping you can help me out.
    I have a shortcut to open Date/Time properties in Control Panel and I’m trying to copy it over from my PC to others. When I use the copy in BP, it only copies rundll.exe, not the full shortcut which is- %windir%\System32\rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0

    Do you know how I could make this work so it copies the full shortcut?

    #13114
    doug
    Moderator

    The copy file/folder feature in BP is for copying files and folders only, so if you’re trying to copy something that is not a file or folder, it’s not going to work. Shortcuts are stored as .lnk files in Windows. You *might* be able to just copy the .lnk file, though I can’t say for sure. Try it and see if it works or not. If it does, great. If not, then it doesn’t work. If you locate a shortcut on your computer, you can use ‘shift right-click > copy-as-path’ to get the filepath of the .lnk file.

    #13115
    ExhaustedTech
    Participant

    Thanks! I’ve copied many shortcuts in the past without issue so I’ve never realized it could potentially not work. I’ll play with it and see what I can do!

    #13127
    doug
    Moderator

    Maybe I misunderstood what you actually tried to do. If you tried to copy the .lnk file from the start, but that’s what you’re saying didn’t work properly, then I’m sorry to say I don’t know why that would be the case. BP performs a standard file copy just like if you do it yourself through Windows Explorer, so if that didn’t work then my guess is it’s due to something about how the shortcut file itself is formed, though I couldn’t say what exactly that would be. Maybe it doesn’t like %windir% and instead wants a full filepath.

    However, when you first posted about this issue, I thought you were describing that you somehow had tried to enter this value into the BP copy file/folder interface, which I’m certain will not work properly:

    %windir%\System32\rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.