WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: mtruong1 on September 18, 2014, 12:02:14 PM

Title: Modify target for shortcut
Post by: mtruong1 on September 18, 2014, 12:02:14 PM
I have a shortcut and this shortcut pointing to target

"C:\users\administrator\appdata\roaming\vseeinstall\vsee.exe".

Now, I want to add the following "private_server https://vseenow.ah.com -bw 1000" to the end of the target,
That is,

"C:\users\administrator\appdata\roaming\vseeinstall\vsee.exe" -private_server https://vseenow.ah.com -bw 1000

How I can do this with winbatch??

Title: Re: Modify target for shortcut
Post by: td on September 18, 2014, 01:12:33 PM
You can use the 'ShortcutEdit' function to modify a shortcut. You will need to identify the name and location of the shortcut's '.lnk' file before you call the function. For example, desktop shortcuts for a specific user can be found in C:\Users\<username>\Desktop on Windows 7.