Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

VBS - control printers desktop shortcut

$
0
0

Hello Everyone,


I am making a .vbs script for desktop shortcuts at startup.
Files and folders I have succeeded.
It just can not manage to create a shortcut control panel printers.
Could someone can help me with this?
thank you in advance

Set oWS = WScript.CreateObject("WScript.Shell")
UsrDesktop = Ows.SpecialFolders("Desktop")
sLinkFile = (UsrDesktop & "\Apparaten en printers.lnk")
Set oLink = oWS.CreateShortcut(sLinkFile)
    oLink.TargetPath = "control.exe"
   ' oLink.Arguments = ""
    'oLink.Description = "Printers en Apparaten | Hier kun je adruktaken van een printer verwijderen"
    'oLink.HotKey = ""
   ' oLink.IconLocation = "%SystemRoot%\system32\shell32.dll, 34"
  '  oLink.WindowStyle = "3"
  ' oLink.WorkingDirectory = "printers"
oLink.Save

'Set WshShell = CreateObject("WScript.Shell")

'WshShell.Exec("control printers")

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>