ParseName "Test Shortcut. GetLink objShortcut. XP1 6, 7 7 gold badges 49 49 silver badges 60 60 bronze badges. I guess you missed the 'programmatically' there. VFDan 11 11 silver badges 26 26 bronze badges. It also allows to suppress cmd window with "Invisible application" option. That link directs me to a site where I have to allow a coinhive miner to download something. Akerus try this - web. GabrielH Genius for using wayback machine to download a file, it works perfectly! The wayback download link seems to be dead now.
Here's the download link to the source repo: github. Show 1 more comment. Joey Joey k 80 80 gold badges silver badges bronze badges. One of the way you can achieve this is: Create an executable Jar file Create a batch file to run the above jar and launch the desktop java application. Use Batch2Exe converter and covert to batch file to Exe. During above conversion, you can change the icon to that of your choice. Now your java program can be opened in a fancy way just like any other MSWindows apps.!
Patrick 3, 1 1 gold badge 38 38 silver badges 64 64 bronze badges. Naveen Naveen 41 1 1 bronze badge. Makaveli84 Makaveli84 5 5 silver badges 16 16 bronze badges. Judge Maygarden Judge Maygarden Lev K.
Please have a look at How do I write a good answer? The Overflow Blog. Podcast Making Agile work for data science. LNK files. You could try to change the file association, but that approach may vary based on the version of Windows you are using.
This is down with the registry in XP, but I'm not sure about Vista. Try BatToExe converter. It will convert your batch file to an executable, and allow you to set an icon for it.
How to change the icon of. Question I'd like to know what's the way to actually set the icon of a. You can, however, create a shortcut in the. One of the way you can achieve this is: Create an executable Jar file Create a batch file to run the above jar and launch the desktop java application. Use Batch2Exe converter and covert to batch file to Exe. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 5 years, 8 months ago. Active 2 years ago.
Viewed 8k times. GetLink objShortcut. Save I imagine I'm simply googling the wrong thing. Improve this question. Hackoo Ace Thanks Ace Thanks 1 1 silver badge 9 9 bronze badges.
This is vbs not PowerShell or batch — Matt. This is neither Powershell or a batch-file, and it has nothing to do with batch-rename.
This is VBScript. I'd suggest that the very first thing you attempt to do is learn the language you're writing code in; it makes it much easier to search for answers to questions when you at least have a vague idea like the programming language you're using when searching.
In this case, it's probably not working because you're trying to run a VBScript file with a. VBScript uses a. Having those tags will just confuse both yourself and those who leave answers. To run that code rename the file with a. Add a comment. Active Oldest Votes. Improve this answer. Hackoo Hackoo The OP doesn't know the difference between a batch file and VBScript, posting this what do you think's going to happen?
I'll tell you, you will confuse the OP still further. They have a simple enough VBScript there all they need to do is run it. I do like your script but I just don't think it's relevant to the question the OP is asking and more likely to confuse then help, sorry. That is entirely up to you.
0コメント