INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

CreateShortcut Problems with dots in exe

CreateShortcut Problems with dots in exe

(OP)
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

RE: CreateShortcut Problems with dots in exe

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?

RE: CreateShortcut Problems with dots in exe

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close