extract a zip file with a windows shortcut using PowerShell

I’m trying to extract a zip file using a Windows shortcut both the zip file and the shortcut are in the same folder I’ve tried to use Powershell to extract the zip file. I want to use PowerShell as the directory will be unknown. I’ve used this PowerShell command in the target of the shortcut.… Read More extract a zip file with a windows shortcut using PowerShell

Batch/VBScript/Powershell hybrid script for creating shortcut to shell folders

As stated in Q-title, I am trying to create and automate script for creating shortcuts to Shell-Special folders which doesn’t have a valid path per path-string validation rules. I have tried both Batch/VBScript hybrid and Powershell script for creating shortcut to Target path explorer shell:AppsFolder which when clicked will open that path exactly and not… Read More Batch/VBScript/Powershell hybrid script for creating shortcut to shell folders

Why isn't shortcut made programatically working properly?

I use this code to make a shortcut to my app while installing it : private void CreateShortcut() { object shDesktop = (object)"Desktop"; WshShell shell = new WshShell(); string shortcutAddress = (string)shell.SpecialFolders.Item(ref shDesktop) + @"\Baseet.lnk"; IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(shortcutAddress); shortcut.Description = "Baseet Program"; shortcut.Hotkey = "Ctrl+Shift+N"; shortcut.TargetPath = Environment.CurrentDirectory + @"\Start_Baseet.exe"; shortcut.Save(); } The original… Read More Why isn't shortcut made programatically working properly?