Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Create  a  Shortcut  For  an  Executable  File  That  Uses  Parameters  

 Content of Create a Shortcut For an Executable File That Uses Parameters.vbs
MD5 Hash: 479D4D5A8D2A055ECA082D8E8DDE11BF
Set objShell = CreateObject("Wscript.Shell")
strDesktop = objShell.SpecialFolders("Desktop")

Set objShortcut = objShell.CreateShortcut(strDesktop & "\Test.lnk")
objShortcut.TargetPath = "Notepad.exe"
objShortcut.Arguments = "C:\Scripts\Test.txt"

objShortcut.Description = "Starts Notepad with a file already loaded."
objShortcut.WorkingDirectory = strDesktop

objShortcut.Save



   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a