Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Shortcut?

Status
Not open for further replies.

VulcanJedi

Technical User
Oct 2, 2002
430
US
So i created a windows shortcut via script as I've done many times before.
However to note this target has the command which has MULTIPLE instances of "" required to segreate spaces ...etc.
It appears windows will always 'auto' place quotes at start/end of target for you?

Anyways
cvbRoot" & """" & Arguments & """" & "%TEMP%"

This results in the shortcut.
When I execute the shortcut windows 'cant' find'
If I edit properties, edit anything and instantly undo (ie not make any change) save ....the shortcut THEN works?

I've also noticed if i script the shortcut then immediate update it in script and resave it works too???

Any insights???

[yinyang] Tranpkp [pc2]
 
Found it. Apparently the createshortcut method has an arguments property versus putting inline the Target property.

[yinyang] Tranpkp [pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top