Thanks. Now, I need to create this for other users, probably quite a few of
them. So I would also need a fool-proof way to distribute this solution.
More helpful would be some way to create the necessary link in
\\workstation\c$\Documents and Settings\All Users\NetHood.
I've noticed that this folder does not already exist, and I've begun to
wonder if it cannot exist, if what I'm trying to do just is not possible. I
can copy an existing NetHood to All Users, and existng links copied to it do
work. At least, they open the correct share. But they still do not show up
in My Network Places.
Automatically distributing a DFS root in My Network Places just seems like
such an obvious thing to do. It has to beat mapping a drive.
--
Greg Stigers, MCSA
remember to vote for the answers you like
"Rich [MSFT]" <(E-Mail Removed)> wrote in message
news:ee%(E-Mail Removed)...
> One option is to create the shortcut via a WSH script and call that script
> using EXEC.vbs from the 2000 resource kit. Here's how you can do the
> shortcut creation through a .vbs file:
>
> ===================================
> CreateShort "\\Server\share", "My Share"
>
> Function CreateShort(strCMD, strName)
> Set WshShell = WScript.CreateObject("WScript.Shell")
>
> strNetHood = WshShell.SpecialFolders("NetHood")
> set oShellLink = WshShell.CreateShortcut(strNetHood & "\" & strName &
> ".lnk")
>
> oShellLink.TargetPath =strCMD
> oShellLink.WindowStyle = 1
> oShellLink.Description = strName
> oShellLink.Save
>
> set oShellLink=Nothing
> Set WshShell = Nothing
> End Function
> ====================================
> --
> Rich Helzerman
> Microsoft Corporation
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> "Greg Stigers, MCSA" <gregstigers+(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>>I have created a DFS root, and want to automagically create a link to it
>>in My Network Places on other XP Pro systems, from a command line.
>>
>> Xcopying "%userprofile%\NetHood\DFSroot on ourdomain.com" to
>> \\xppro\c$\documents and settings\user.domain\nethood does not work. Nor
>> does xcopying target.lnk to a subdirectory with the appropriate DFSRoot
>> name. I feel like I am missing something blindingly obvious, since this
>> seems like an obvious thing to do, but I cannot figure out how to do it.
>> Searches have given me clear instructions on how to manually drag and
>> drop such a link, but other than that, I'm not finding anything.
>> --
>> Greg Stigers, MCSA
>> remember to vote for the answers you like
|