From: EJ on
Hi all,

I have a situation as follows:

- Lots of user profiles on a Terminal Server (Win Server 2003 Standard).
- A considerable portion of profile desktops have a file called
whataver.lnk.
- I have a new whatever.lnk file which I need to replace all occurrences of
the existing one with on the server.

What's the quickest way of doing this please?

Googling just seems to bring back tools which simply search and replace file
contents with text.

Thanks in advance.

Elliot


From: Bob Campbell on
Hi Elliot,
Is this a one-time task or will it be an ongoing occurrence?
-Bob

"EJ" <ej(a)news.com> wrote in message
news:O8B0Zm09KHA.1892(a)TK2MSFTNGP05.phx.gbl...
Hi all,

I have a situation as follows:

- Lots of user profiles on a Terminal Server (Win Server 2003 Standard).
- A considerable portion of profile desktops have a file called
whataver.lnk.
- I have a new whatever.lnk file which I need to replace all occurrences of
the existing one with on the server.

What's the quickest way of doing this please?

Googling just seems to bring back tools which simply search and replace file
contents with text.

Thanks in advance.

Elliot

From: Bob Campbell on
If it's a one-time task, I would do this:

c:\> DIR whatever.lnk /s/b > whatever.bat

Then use notepad to edit whatever.bat.

Replace All "C:\" with "xcopy /y newwhatever.lnk c:\"

Then run your whatever.bat.

There are several other switches for xcopy that might be useful, such as /r
or /h.

That's it.

"Bob Campbell" <softwaretailor(a)msn.com> wrote in message
news:16D25244-AF99-4C39-84F9-D3BA928CBEED(a)microsoft.com...
Hi Elliot,
Is this a one-time task or will it be an ongoing occurrence?
-Bob

"EJ" <ej(a)news.com> wrote in message
news:O8B0Zm09KHA.1892(a)TK2MSFTNGP05.phx.gbl...
Hi all,

I have a situation as follows:

- Lots of user profiles on a Terminal Server (Win Server 2003 Standard).
- A considerable portion of profile desktops have a file called
whataver.lnk.
- I have a new whatever.lnk file which I need to replace all occurrences of
the existing one with on the server.

What's the quickest way of doing this please?

Googling just seems to bring back tools which simply search and replace file
contents with text.

Thanks in advance.

Elliot

From: EJ on

"Bob Campbell" <softwaretailor(a)msn.com> wrote in message
news:08A9E162-2885-49BA-8051-82106451DDE8(a)microsoft.com...
> If it's a one-time task, I would do this:
>
> c:\> DIR whatever.lnk /s/b > whatever.bat
>
> Then use notepad to edit whatever.bat.
>
> Replace All "C:\" with "xcopy /y newwhatever.lnk c:\"
>
> Then run your whatever.bat.
>
> There are several other switches for xcopy that might be useful, such as
> /r
> or /h.
>
> That's it.
>
> "Bob Campbell" <softwaretailor(a)msn.com> wrote in message
> news:16D25244-AF99-4C39-84F9-D3BA928CBEED(a)microsoft.com...
> Hi Elliot,
> Is this a one-time task or will it be an ongoing occurrence?
> -Bob
>
> "EJ" <ej(a)news.com> wrote in message
> news:O8B0Zm09KHA.1892(a)TK2MSFTNGP05.phx.gbl...
> Hi all,
>
> I have a situation as follows:
>
> - Lots of user profiles on a Terminal Server (Win Server 2003 Standard).
> - A considerable portion of profile desktops have a file called
> whataver.lnk.
> - I have a new whatever.lnk file which I need to replace all occurrences
> of
> the existing one with on the server.
>
> What's the quickest way of doing this please?
>
> Googling just seems to bring back tools which simply search and replace
> file
> contents with text.
>
> Thanks in advance.
>
> Elliot

Hi Bob,

A big thank you for your reply.

I have to perform the task once on four Terminal Servers, but I suppose it
could be something I would need to do again - but not on a schedule or
anything.

I will give your suggestion a whirl now, thanks :)

Elliot


From: EJ on
"Bob Campbell" <softwaretailor(a)msn.com> wrote in message
news:08A9E162-2885-49BA-8051-82106451DDE8(a)microsoft.com...
> If it's a one-time task, I would do this:
>
> c:\> DIR whatever.lnk /s/b > whatever.bat
>
> Then use notepad to edit whatever.bat.
>
> Replace All "C:\" with "xcopy /y newwhatever.lnk c:\"
>
> Then run your whatever.bat.
>
> There are several other switches for xcopy that might be useful, such as
> /r
> or /h.
>
> That's it.
>
> "Bob Campbell" <softwaretailor(a)msn.com> wrote in message
> news:16D25244-AF99-4C39-84F9-D3BA928CBEED(a)microsoft.com...
> Hi Elliot,
> Is this a one-time task or will it be an ongoing occurrence?
> -Bob
>
> "EJ" <ej(a)news.com> wrote in message
> news:O8B0Zm09KHA.1892(a)TK2MSFTNGP05.phx.gbl...
> Hi all,
>
> I have a situation as follows:
>
> - Lots of user profiles on a Terminal Server (Win Server 2003 Standard).
> - A considerable portion of profile desktops have a file called
> whataver.lnk.
> - I have a new whatever.lnk file which I need to replace all occurrences
> of
> the existing one with on the server.
>
> What's the quickest way of doing this please?
>
> Googling just seems to bring back tools which simply search and replace
> file
> contents with text.
>
> Thanks in advance.
>
> Elliot

Bob,

This has worked perfectly! Now I know the trick I can adapt it if necessary
for future use.

Thank you very much for sharing your knowledge :)

Best wishes,

Elliot