1.

Solve : How to create self extracting command line command?

Answer»

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
RJTYou 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!

Thank you for your response!!!



Discussion

No Comment Found