Using Delphi 2010 or compatible version, write a function:
Function ShortcutEdit(const ShortcutFilename, NewTarget, NewWorkingDir : String) : Boolean;
Which edits the given ShortcutFile and changes its target (i.e. to what file the shortcut is pointing to) and its working directory. If the function succeeds, it must return True.
The function needs to work with only regular shortcuts pointing to a file, not with special shortcuts that point to Windows properties such as My Computer or Control Panel.
The function must work all versions of Windows from Windows XP to Windows 10.
The final delivery must consists of the source code as well as a simple demo program that can be used to test the function works.
10 szabadúszó tett átlagosan $24 árajánlatot erre a munkára
Hello, this is a few hours max. project (including testing on different, XP up to 10 Windows. I have virtual and physical machines for that). I'm ready to code it right now.
I've made this function and small console application which you can call with three parameters: shortcut file name, new target, new working dir. All is ready and waiting for you. :-)