Updating shortcut files batch
It's possible to obtain the location of the Programs folder using a batch file, but doing so would more than double the size of the batch file, so I refrained.
I'm installing a desktop shortcut (to a batch file) from a Wi X-based installer -- how do I automatically configure this shortcut with the "Run as Administrator" setting enabled?
 In software project directories, create for example, project to point to the .
LNK files only support absolute paths even when using IWsh Runtime Library. Early versions of Windows, such as XP, don't support sym Links unless Cyg Win is used. LNK be created to start an app 'nearby' via a relative path? The 'start' allows cmd to terminate - otherwise a cmd window would remain open.
Problem being is when someone moves the icon it is gone for every one.
So I decided I could place a folder on the server, name four folders on the server, each with all the shortcuts, then create a batch file that will run silently when they login, placing the icons on the desktop each time.
..\a\where ..\a\represents a relative path to your target. LNK by Windows complicates an otherwise conceptually simple objective.
I created a batch file to pick a random file from a folder.
If you look at a inf file for a program that's been installed on your system, you may see a section that looks something like this: [Add Link] setup.ini, progman.groups,, "group0=%Short Name%" setup.ini, group0,, ""%Short Name%"" setup.ini, group0,, """%icon1name%"",""I002%\jscript5.chm"",,0," This may look like jibberish, but that's the sort of syntax that programmers use in an INF file to create start menu shortcuts.