DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Create or delete a graphical shortcut or icon in the desktop  (Read 6,286 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Create or delete a graphical shortcut or icon in the desktop.
Create an image or delete it in the desktop.

1. with bat code

2. with ahk code


Best Regards

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Create or delete a graphical shortcut or icon in the desktop
« Reply #1 on: September 05, 2014, 12:58 PM »
Command line or file:

Use Shortcut.exe from here: Shortcut

eg.
Code: (generic)
Shortcut.exe /f:"%USERPROFILE%\Desktop\MyFile.lnk" /a:c /t:%USERPROFILE%\Desktop\MyFile.pdf
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Create or delete a graphical shortcut or icon in the desktop
« Reply #2 on: September 06, 2014, 01:32 AM »
Thanks 4wd
I'll try. I am finishing the bats.
I found two in a geek page to stop o inhabilite services that usually don't are necessary.
:-*

Original address: https://www.donationcoder.com/forum/index.php?topic=38880.0