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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateShortcut Problems with dots in exe

Status
Not open for further replies.

barr001

Programmer
Jul 27, 2017
2
DE
Hello

i want to make a shortcut to a exe with dots in the name
the vbs snippet:

Set objShell=WScript.CreateObject("Wscript.Shell")
Set objShortcut=objShell.CreateShortcut("C:\Users\Public\Desktop\SGS_Autoversand.lnk")
objShortcut.TargetPath="V:\versand\SGS\VLS-Binary\Sgs.XXXXX.AutoVersand.exe"
objShortcut.Description="bla bla"
objShortcut.WorkingDirectory="V:\versand\SGS\VLS-Binary\"
objShortcut.Arguments = "-Ini V:\versand\SGS\VLS-Daten\INIT\TNR_12\Autoversand.ini"
objShortcut.Save


the shortcut produced was: V:\versand\SGS\VLS-Binary\Sgs.exe

what can i do?

thanks
Rainer

 
It doesn't do that for me, so I don't know. You can have dots in the exe file name. When you right-click over the shortcut, what is in the "Target"? What OS are you using?
 
Hi,

the prpblem is only at Windows 10. I testet the same VBS on a Windows 7 PC without any problems
when i rightclick and check the target:
The target is at Win10 V:\versand\SGS\VLS-Binary\Sgs.exe
and Win7 correctly: V:\versand\SGS\VLS-Binary\Sgs.XXXXX.AutoVersand.exe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top