Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Creating a Desktop Shortcut w/ Parameters

$
0
0

I am trying to create a shortcut on the desktop that has parameters with it.  Normally I can create shortcuts with no problem but I am at a lose on this one.

 

 

 

$shortcut

 

 

 

 

 

 

=$WshShell.CreateShortcut("$dudir\Desktop\###########.lnk")

$shortcut.TargetPath ='"C:\Program Files (x86)\SAP\FrontEnd\SAPgui\saplogon.exe" /INI_FILE="C:\Program Files (x86)\SAP\Sapworkdir\##########.ini"'

 

$shortcut

 

 

 

 

 

 

.WorkingDirectory ="C:\Program Files (x86)\SAP\FrontEnd\SAPgui"

$shortcut

 

 

 

 

 

 

.Save()

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles