Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to create self extracting command line command  (Read 2759 times)

0 Members and 1 Guest are viewing this topic.

rjtrooty

  • Guest
How to create self extracting command line command
« on: January 18, 2005, 11:59:29 AM »
I have created a manuals package. The package has a main file that everything else is linked to. I can create a self extracting exe program from pkzip application. What I don't know how to do is have the program create a shortcut to the main file from this program. If it is not possible to do this with pkzip then what application will do this.
i.e. I want to have something say
"Would you like to create a shortcut to Manuals or your desktop?" in the or any file extraction application.
Thank you
RJT

Zzyzx

  • Guest
Re: How to create self extracting command line com
« Reply #1 on: January 18, 2005, 02:52:19 PM »
You can create a WinScript file (.vbs extension)

Example:

set WshShell = WScript.CreateObject("WScript.Shell")
        strDesktop = WshShell.SpecialFolders("Desktop")
        set oShellLink = WshShell.CreateShortcut(strDesktop & "\Shortcut Script.lnk")
        oShellLink.TargetPath = WScript.ScriptFullName
        oShellLink.WindowStyle = 1
        oShellLink.Hotkey = "CTRL+SHIFT+F"
        oShellLink.IconLocation = "notepad.exe, 0"
        oShellLink.Description = "Shortcut Script"
        oShellLink.WorkingDirectory = strDesktop
        oShellLink.Save

You'll have to change the parameters for your own situation. Good Luck!

8)

Ronald Trevisone

  • Guest
Re: How to create self extracting command line com
« Reply #2 on: January 19, 2005, 05:54:41 AM »
Thank you for your response!!!

:D