Yea, that first link is where I got the idea from but if you'll notice on this page there is no reference to the object in which you set in order to be able to call this method. It's a direct method of the External object I get this however this isn't sufficent enough to set the code, if I'm making any sense.
Ex.
'In order for me to shell a run command I would need to Create a WScript.Shell object first.
Set objShell = WScript.CreateObject("WScr
'Then I could say "OK objShell, go start notepad and max window.
objShell.Run "notepad.exe", MAXIMIZE_WINDOW
I wouldn't be able to run this last line if I've neglected to set the object first.
I took a guess and tried this
Set objShell = WScript.CreateObject("Wind
objShell.ImportExportFavor
the only problem is that this isn't the proper object to set and I'm trying to figure out what is.
I'm guessing if I don't figure out how to get this to work then I'm stuck with the XCOPY procedure in the login script. I'm not going to rest until I see this dam method work however and I'm aware of the fact that it used to be part of an exploit with IE back in version 5, this has long been patched and I need it to work for legit reasons. 2 lines of dam code to export and import the favorites during a migration is a nice incentive.
Main Topics
Browse All Topics





by: DexstarPosted on 2003-12-23 at 16:29:35ID: 9994537
@TooKoolKris:
library/de fault.asp? url=/works hop/ author /dhtml/ref erence/met hods/impor texportfav orites.asp
-exchange. com/viewMe mber.jsp?m id=1499285 hange.com/ viewMember .jsp?mid=1 499285 9 s-exchange .com/image s/ee.ico
> Anyone have some code that I can use to do this simple task. I just need to
> export the favorites to any place on the server for an example so I can see
> how to set the object correctly and see that It's works.
Okay, first of all, you've seen this page, right?
http://msdn.microsoft.com/
Have you tried putting the sample code listed there into a page, and invoking it from say, a form button? What happens when you do that?
The other thing is that Favorites are just files in the user's profile. I'm not sure exactly how you want to import or export, but it should be trivial to write a VBScript to iterate the profile directory and manipulate these files. If you just want to extract the URL, the format is really easy. It's just a text file that looks like this (for example):
[DEFAULT]
BASEURL=http://www.experts
[InternetShortcut]
URL=http://www.experts-exc
Modified=D0A443A7BE99C3017
IconFile=http://www.expert
IconIndex=1
Tell me more about what you're trying to do with these favorites...
Hope That Helps,
Dex*