Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: ShortcutMake ShortcutEdit
ShortcutMake("test.lnk", "\\server\public\testdir\myprog.exe", "", "", 0)and \\server\public\testdir\myprog.exe doesn't exist, then the target of the share may get set to:
\\server\publicThis is due to the behavior of the API function we are calling, and is consistent with the behavior when trying to create or edit a shortcut interactively from Explorer (ie, you are prevented from specifying an invalid target).
ShortcutEdit("GUESTC~1.LNK", "", "f:\cpmail\%myname% password", "c:\Windows\desktop", @NORMAL)What am I doing wrong?
Also, use StrCat in the third parameter, rather than using variable substitution. So your new command string should look like:
ShortcutEdit("C:\WINDOWS\DESKTOP\GUESTC~1.LNK", "", strcat("f:\cpmail\",myname,password), "C:\Program Files\CCMail", @NORMAL)
Article ID: W13852
Filename: Shortcutmake - ShortcutEdit and using UNC as Target.txt
File Created: 2001:01:31:10:39:52
Last Updated: 2001:01:31:10:39:52