Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VBScript "WshShell.CreateShortCut"

Featured Replies

Windows Vista and UAC mean that some of the programs that I have need to be run with Administrator priviledge elevation, this can be done, either by changing the .exe permission to be "always Run as Administrator", right click on the exe and choose run as admin or have a shortcut and set the property of the shortcut to "Run As Admin".

I am creating shortcuts for these programs using VBScript. Windows Vista has an additional property tab for shortcuts (.lnk) labelled Compatibility. there is a tick box on there that will Run the target program as administrator.

What I am asking here: Is there a way to create a shortcut with this tick box enabled within VBScript ??

I can post details of the script that creates the shortcut if need be, but its just a standard vbscript file.


  • Author
Maybe this helps?

That's great, thanks Mizjelf, however I was looking for a VBScript method for doing this, that link isn't for VBScript :(

I use this script:

Dim Act,colEnvironmentVariables, objShortCut, Shell
Set Shell = CreateObject("WScript.Shell")
Set colEnvironmentVariables = Shell.Environment("Volatile")
Set Act = CreateObject("Wscript.Shell")

Set objShortCut = Shell.CreateShortcut(Act.ExpandEnvironmentStrings("%UserProfile%\Desktop\Windows Media Player.lnk"))
objShortCut.TargetPath = Act.ExpandEnvironmentStrings("%ProgramFiles%\Windows Media Player\wmplayer.exe")
objShortCut.Arguments = " /prefetch:1"
objShortCut.WorkingDirectory = Act.ExpandEnvironmentStrings("%ProgramFiles%\Windows Media Player")
objShortCut.Description = "Play digital media including music, videos, CDs, and DVDs."
objShortCut.Save

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.