Hi,
I have been trying to adapt various scripts (I could post them, but as they did not originate with me, and I have not been able to edit them to achieve what I want, that seems a bit pointless!) to achieve a simple task:
The problem is this: I have various shortcuts on my PC whose targets, for reasons I have not been able to work out, will change ('all by themselves'!) from, say this:
to this:
(Martin-fspc being, of course, the local PC name). Yes, the PC is on a home network, but I do not access any of the shortcuts except on that local PC . I have no idea why or when this change occurs, but corrected shortcuts tend to revert to the network form after a few weeks or so. Total mystery to me....
OK, if anyone can advise on that and prevent it happening, that would be great. But what I wanted to do (and ask about here on the forum) , and haven't managed, is to write a batch or vbs script that will search my PC (or selected directories thereof) for any instance of \\Martin-fspc\ in a shortcut target and identify the shortcut containing it. It would be even more welcome if the script changed all instances of, for example
"\\Martin-fspc\
to
"E:\
whilst leaving the rest of the target information ( XP Utilities\data\" in this example ) intact, but there are not so many - if they can be identified at least, I can change them manually.
Problem is, in a few weeks I will find they have gone back to the network address, but if I had a script that would at least show any shortcuts on my PC with \\ at the start of the target box, I could keep on top of the problem at least.
Many thanks for any help,
Martin
I have been trying to adapt various scripts (I could post them, but as they did not originate with me, and I have not been able to edit them to achieve what I want, that seems a bit pointless!) to achieve a simple task:
The problem is this: I have various shortcuts on my PC whose targets, for reasons I have not been able to work out, will change ('all by themselves'!) from, say this:
Code:
"E:\XP Utilities\data\"
Code:
"\\Martin-fspc\e\xp utilities\data\"
OK, if anyone can advise on that and prevent it happening, that would be great. But what I wanted to do (and ask about here on the forum) , and haven't managed, is to write a batch or vbs script that will search my PC (or selected directories thereof) for any instance of \\Martin-fspc\ in a shortcut target and identify the shortcut containing it. It would be even more welcome if the script changed all instances of, for example
"\\Martin-fspc\
to
"E:\
whilst leaving the rest of the target information ( XP Utilities\data\" in this example ) intact, but there are not so many - if they can be identified at least, I can change them manually.
Problem is, in a few weeks I will find they have gone back to the network address, but if I had a script that would at least show any shortcuts on my PC with \\ at the start of the target box, I could keep on top of the problem at least.
Many thanks for any help,
Martin