VBScript to change shortcut properties
Posted on 2007-10-02
I have 120 shorcuts that all include the same ip address in the target field under shorcut properties. I need to change the ip address all shorcuts to HomePC. I'm sure there's a way to do it programtically with VBScript rather than by hand, I'm just not sure how to do that. I do have some experience with VBScript, just not enough to risk screwing up all of the shortcuts. Below is an example of what I am looking for:
Original Target Value --
C:\Sim\Sim.exe C:\Sim\SimTrack\MyTrack.sim -sa 192.168.0.10:15700 -rs y -sn C:\Sim\SimTrack\MyTrack.ssf
Updated Value --
C:\Sim\Sim.exe C:\Sim\SimTrack\MyTrack.sim -sa HomePC:15700 -rs y -sn C:\Sim\SimTrack\MyTrack.ssf
All shorcuts are slightly different except for the IP address. The ip addess is the only thing I'd like to change.
Can anyone suggest how to do this?