Bill said:
Hello all:
Is there a way to script the addition (persistent or
otherwise) of an FTP location to a user's My Network
Places. I'm open to either a simple batch script command
or WSH. Any assistance is greatly appreciated.
Thanks in advance...
Bill
Hopefully someone knows of a supported, documented function to add these,
but they are just shell folders under "%USERPROFILE%\NetHood\". You
can manually create them using a combination of Desktop.ini and a .LNK
shortcut.
The contents of desktop.ini tell Explorer to display different contents, so
the real folder contents are hidden from you. You need to poke around using
a command prompt:
C:\>Dir "%USERPROFILE%\NetHood\"
Volume in drive C has no label.
Volume Serial Number is F021-FA97
Directory of C:\Documents and Settings\Marty.OPTIMUMX\NetHood
09/17/2003 05:51 PM <DIR> .
09/17/2003 05:51 PM <DIR> ..
01/28/2003 06:35 PM <DIR> c$ on Starone
03/19/2003 08:47 AM <DIR> ftp.microsoft.com
09/17/2003 05:51 PM <DIR> ftp.symantec.com
05/04/2003 09:47 PM <DIR> Marty$ on File Server, MP3 Server
(Tool)
11/22/2002 09:05 PM <DIR> My Web Sites on MSN
0 File(s) 0 bytes
7 Dir(s) 3,143,852,032 bytes free
C:\>Dir "%USERPROFILE%\NetHood\ftp.microsoft.com"
Volume in drive C has no label.
Volume Serial Number is F021-FA97
Directory of C:\Documents and
Settings\Marty.OPTIMUMX\NetHood\ftp.microsoft.com
03/19/2003 08:47 AM <DIR> .
03/19/2003 08:47 AM <DIR> ..
03/19/2003 08:47 AM 75 Desktop.ini
03/19/2003 08:47 AM 190 target.lnk
2 File(s) 265 bytes
2 Dir(s) 3,143,852,032 bytes free
C:\>Type "%USERPROFILE%\NetHood\ftp.microsoft.com\Desktop.ini"
[.ShellClassInfo]
CLSID2={0AFACED1-E828-11D1-9187-B532F1E9575D}
Flags=2