Page 4 of 5 <12345>
Topic Options
#89665 - 2002-11-28 10:26 AM Re: help with creating shortcuts with shellLinkObject
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I read your explanation and I need to ask something:
could it be possible for you to have the shortcuts created before hand?
the hardest part is the creation, moving and changing of the property is easy.
_________________________
!

download KiXnet

Top
#89666 - 2002-11-28 10:47 AM Re: help with creating shortcuts with shellLinkObject
DonKing Offline
Fresh Scripter

Registered: 2002-11-27
Posts: 22
Yes, the shortcuts can be created before hand. Whichever solution is easiest. Copying didn't work for me neither yet. What you said about the link being a folder with a target.lnk and desktop.ini file I discovered also when copying the shortcut through a commandprompt.

Can you tell me how to copy the shortcuts then?

Top
#89667 - 2002-11-28 10:53 AM Re: help with creating shortcuts with shellLinkObject
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I'll go for cigarette and get back in five
_________________________
!

download KiXnet

Top
#89668 - 2002-11-28 11:10 AM Re: help with creating shortcuts with shellLinkObject
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
need an update again.
do we talk about folder shortcuts or network shortcuts?

if you click somewhere to create a shortcut and make it point to a share, it's a normal folder shortcut, which can be created with that code of mine with little mod.

but if you are asking for network shortcut without ability to click to above folder...
then it's totally different story.
_________________________
!

download KiXnet

Top
#89669 - 2002-11-28 11:19 AM Re: help with creating shortcuts with shellLinkObject
DonKing Offline
Fresh Scripter

Registered: 2002-11-27
Posts: 22
It's a shortcut that points to a network share, but not that kind you can create by right clicking on your desktop and choose new | shortcut.

Create one through Add network place and compare the shortcuts. A folder shortcut has NO properties like a normal shortcut has. It doesn't have a white arrow in the bottom left corner and it shows no size in the explorer window.

Top
#89670 - 2002-11-28 11:34 AM Re: help with creating shortcuts with shellLinkObject
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
nope, folder shortcut is all shortcuts pointing to folder.
actually folderitem.

the "folder shortcut" you specified, the one avail in nethood is not clean, or can you create it elsewhere?
_________________________
!

download KiXnet

Top
#89671 - 2002-11-28 11:41 AM Re: help with creating shortcuts with shellLinkObject
DonKing Offline
Fresh Scripter

Registered: 2002-11-27
Posts: 22
What do you mean exactly by not clean?
Top
#89672 - 2002-11-29 12:46 AM Re: help with creating shortcuts with shellLinkObject
DonKing Offline
Fresh Scripter

Registered: 2002-11-27
Posts: 22
YES!

Copying works when I use XCOPY and a whole string of parameters:

Xcopy /H /K /E /I /O /X

I'll try to work this out first.

Top
#89673 - 2002-11-29 12:55 AM Re: help with creating shortcuts with shellLinkObject
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what I mean is that shorcut is shortcut.
the "shortcut" you see in nethood is not a shortcut but mini filesystem.

folder shortcut is created just the same and looks the same as file shortcuts.
_________________________
!

download KiXnet

Top
#89674 - 2002-11-28 01:06 PM Re: help with creating shortcuts with shellLinkObject
DonKing Offline
Fresh Scripter

Registered: 2002-11-27
Posts: 22
A folder shortcut consists of:
1) A folder
2) A desktop.ini
3) A target.lnk
Indeed a mini filesystem.

You need to copy all three items including their original file attributes. Hence all the switches with xcopy.

Top
#89675 - 2002-11-28 02:20 PM Re: help with creating shortcuts with shellLinkObject
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
that should not be enough.
adding one new link in nethood should add also a namespace in:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\NetworkNeighborhood
_________________________
!

download KiXnet

Top
#89676 - 2002-11-28 04:44 PM Re: help with creating shortcuts with shellLinkObject
DonKing Offline
Fresh Scripter

Registered: 2002-11-27
Posts: 22
It is!

I don't want the shortcuts in My network Places, I want them in the folder of their department share.

I've got a working situation now where the shortcuts are copied based on users group membership. And it's working great!

Top
#89677 - 2002-11-28 05:15 PM Re: help with creating shortcuts with shellLinkObject
DonKing Offline
Fresh Scripter

Registered: 2002-11-27
Posts: 22
Well... it works great in explorer and my computer. When you click back in Word of Excel you still end up browsing the network.

Thank you MS for being so consistent...NOT.

I'll go ly down now in the fetal position and cry for a few hours.

Top
#89678 - 2002-11-28 05:26 PM Re: help with creating shortcuts with shellLinkObject
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
king, didn't I say?

anyway, I've heard the words that it can't be done. don't think so. it's just little harder than one would imagine.
_________________________
!

download KiXnet

Top
#89679 - 2002-11-28 05:47 PM Re: help with creating shortcuts with shellLinkObject
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What about dynamically populating 'My Network Places' instead of a share.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#89680 - 2002-11-28 05:52 PM Re: help with creating shortcuts with shellLinkObject
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
may I ask what you mean with that dynamical population?
_________________________
!

download KiXnet

Top
#89681 - 2002-11-28 08:04 PM Re: help with creating shortcuts with shellLinkObject
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What I mean is to have a script add or remove links when they logon.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#89682 - 2002-11-29 07:24 AM Re: help with creating shortcuts with shellLinkObject
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yes, but how it differs from the stuff we have been trying to do?
_________________________
!

download KiXnet

Top
#89683 - 2002-11-29 08:28 AM Re: help with creating shortcuts with shellLinkObject
DonKing Offline
Fresh Scripter

Registered: 2002-11-27
Posts: 22
Last night I read this comment of a guy named Registrylord about desktop.ini files:

; -- Desktop.ini + Drivers --
;
; Folder Pointers works like a windows 2000 or xp junction.
; it is a browsable shortcut.
; it has been crippled to only work in the start menu.
; with some hacking it could be force to work else ware.
; Desktop.ini
; [.ShellClassInfo]
; CLSID={FA6C62A0-9FE5-11D2-9E61-444553540000}
; Folder.lnk
; Shortcut to the real folder.
; http:/www.zdnet.com

I've mailed him explaining the problem to ask if this hack could work for my problem. Unfortunately no reply yet.

About dynamically populating My Network Places. We could do that, but the problem stays the same when using Word or Excel to browse.

Top
#89684 - 2002-11-29 10:20 AM Re: help with creating shortcuts with shellLinkObject
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
your desktop.ini looks ok but the clsid is weird...
I've seen it with "clsid2=" only...
_________________________
!

download KiXnet

Top
Page 4 of 5 <12345>


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 566 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.075 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org