Win Zip Self Extract File into current user's favorites list

Posted on 2006-05-23
Last Modified: 2008-01-09
Hi there,

I already know how to create self-extract files using WinZip, but I need to create a self extract file that extracts a web-application shortcut into the Logged-In user's browser's Favorites list.

I have tried extracting the shortcut into the C:\Documents and Settings\All Users\Favorites directory, but the icon still does not appear in the current user's list! Grrr... ;-( And the winzip self extractor seems to have no ability to extract into the current user's favorites list.

How do I do this? Do I have to use an installer? If so can you recommend a basic free one ;-) as this excercise isn't exactly complicatied...
Question by:LoveToSpod
    LVL 28

    Accepted Solution

    Is WinZip neccessary? Why not just copy the required shortcut(s) in a batch?

    copy *.url "%USERPROFILE%\Favorites" /y

    Hope it helps,

    LVL 28

    Expert Comment

    Or you may want to look at
    LVL 4

    Assisted Solution

    Or simply use "%USERPROFILE%\Favorites" (without the quotes) as the unpacking directory and the self extractor will unzip into the favourites folder of whoever is currently logged on.


    Author Comment

    Hmmm..., I tried using the %USERPROFILE%\Favorites address in the address of the extractor - in two different attempts. The %USERNAME% becomes a literal, and creates directories/addresses as follows:

    C:\Documents and Settings\%USERPROFILE%\Favorites
    C:\Documents and Settings\e017plb\My Documents\TNT\Analysis\Projects\SPSRS\%USERPROFILE%\Favorites

    Note it didn't place the file in the current user's directory! Did I do this exercise correctly. I would prefer to use this auto-extract method due to its simplicity.

    Else, if this method won't work, how do I construct the batch file, and then get the user to execute it to have the desired result.

    Please help!


    Author Comment

    In addition to the above, I did just use the \%USERPROFILE%\Favorites address in the extractor, and that produced this result: C:\Documents and Settings\e017plb\My Documents\TNT\Analysis\Projects\SPSRS\%USERPROFILE%\Favorites


    Author Comment

    I tried running the extractor with %USERPROFILE%\Favorites from a collegues email, and it seems to extract the file, but I cannot see it anywhere on a search!

    Still trying, - please help with any suggs...


    Author Comment

    OK Cool!

    It's been a while since I wrote a batch file, but I did, and using the code above, IT WORKS!!!!!!! YIPPEEEE DE DOO DAAAHHHH!!!!!

    Thanks for your help.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
    Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now