aidymp Well-Known Member Licensed User Longtime User Jan 15, 2016 #1 Hi im looking to create a windows shortcut in code? ideally with custom icon is this possible? I have seen some posts about it in VB.net but nothing in B4J Thanks Aidy
Hi im looking to create a windows shortcut in code? ideally with custom icon is this possible? I have seen some posts about it in VB.net but nothing in B4J Thanks Aidy
Erel B4X founder Staff member Licensed User Longtime User Jan 15, 2016 #2 You can create a shortcut as part of the installation. Creating a shortcut at runtime is more difficult. Seems like it requires a Java library that uses JNI to call the Windows specific APIs. Upvote 0
You can create a shortcut as part of the installation. Creating a shortcut at runtime is more difficult. Seems like it requires a Java library that uses JNI to call the Windows specific APIs.
aidymp Well-Known Member Licensed User Longtime User Jan 15, 2016 #3 Erel said: You can create a shortcut as part of the installation. Creating a shortcut at runtime is more difficult. Seems like it requires a Java library that uses JNI to call the Windows specific APIs. Click to expand... Does a library like this exist? as my plan is to copy an existing windows application and run it in portable mode, this way the user would have 2 or more versions of the same app, i can make the .bat but a shortcut would be the icing on the cake! Thanks Aidy Upvote 0
Erel said: You can create a shortcut as part of the installation. Creating a shortcut at runtime is more difficult. Seems like it requires a Java library that uses JNI to call the Windows specific APIs. Click to expand... Does a library like this exist? as my plan is to copy an existing windows application and run it in portable mode, this way the user would have 2 or more versions of the same app, i can make the .bat but a shortcut would be the icing on the cake! Thanks Aidy
wonder Expert Licensed User Longtime User Jan 15, 2016 #4 aidymp said: Hi im looking to create a windows shortcut in code? ideally with custom icon is this possible? I have seen some posts about it in VB.net but nothing in B4J Thanks Aidy Click to expand... This article may help: http://superuser.com/questions/455364/how-to-create-a-shortcut-using-a-batch-script Then, you can use jShell to run the batch file. Upvote 0
aidymp said: Hi im looking to create a windows shortcut in code? ideally with custom icon is this possible? I have seen some posts about it in VB.net but nothing in B4J Thanks Aidy Click to expand... This article may help: http://superuser.com/questions/455364/how-to-create-a-shortcut-using-a-batch-script Then, you can use jShell to run the batch file.
I inakigarm Well-Known Member Licensed User Longtime User Jan 15, 2016 #5 More options: http://stackoverflow.com/questions/19629034/create-shortcut-in-windows-programmatically Java involved: https://github.com/BlackOverlord666/mslinks Sure more options avalaible..(powershell,vbscript) with jshell Upvote 0
More options: http://stackoverflow.com/questions/19629034/create-shortcut-in-windows-programmatically Java involved: https://github.com/BlackOverlord666/mslinks Sure more options avalaible..(powershell,vbscript) with jshell
DonManfred Expert Licensed User Longtime User Jan 15, 2016 #6 inakigarm said: Java involved: https://github.com/BlackOverlord666/mslinks Click to expand... will try to build a wrapper for it later today Upvote 0
inakigarm said: Java involved: https://github.com/BlackOverlord666/mslinks Click to expand... will try to build a wrapper for it later today
aidymp Well-Known Member Licensed User Longtime User Jan 15, 2016 #7 @DonManfred that would be excellent! in the mean time i will read up on the above links! Thank you everyone above! I have clicked the likes too! Thanks Aidy Upvote 0
@DonManfred that would be excellent! in the mean time i will read up on the above links! Thank you everyone above! I have clicked the likes too! Thanks Aidy
aidymp Well-Known Member Licensed User Longtime User Jan 15, 2016 #8 DonManfred said: will try to build a wrapper for it later today Click to expand... I have a donation waiting! Upvote 0
DonManfred said: will try to build a wrapper for it later today Click to expand... I have a donation waiting!
lemonisdead Well-Known Member Licensed User Longtime User Jan 15, 2016 #9 aidymp said: I have a donation waiting Click to expand... Please, don't put Manfred under pressure. He does his best when he is relaxed Spoiler Upvote 0
aidymp said: I have a donation waiting Click to expand... Please, don't put Manfred under pressure. He does his best when he is relaxed Spoiler
aidymp Well-Known Member Licensed User Longtime User Jan 15, 2016 #10 lemonisdead said: Please, don't put Manfred under pressure. He does his best when he is relaxed Spoiler View attachment 40639 Click to expand... lol! at the cat! Thanks Aidy Upvote 0
lemonisdead said: Please, don't put Manfred under pressure. He does his best when he is relaxed Spoiler View attachment 40639 Click to expand... lol! at the cat! Thanks Aidy
DonManfred Expert Licensed User Longtime User Jan 16, 2016 #11 aidymp said: I have a donation waiting! Click to expand... Nice to hear ;-) Wrapper is written. But sadly it does not work as yet... I´m investigating what´s going wrong. Hopefully i can get rid of it Upvote 0
aidymp said: I have a donation waiting! Click to expand... Nice to hear ;-) Wrapper is written. But sadly it does not work as yet... I´m investigating what´s going wrong. Hopefully i can get rid of it
DonManfred Expert Licensed User Longtime User Jan 16, 2016 #12 lemonisdead said: He does his best when he is relaxed Click to expand... I would like to give TWO likes to your post, sweety... One for your comment and one for the cool Cat Upvote 0
lemonisdead said: He does his best when he is relaxed Click to expand... I would like to give TWO likes to your post, sweety... One for your comment and one for the cool Cat
lemonisdead Well-Known Member Licensed User Longtime User Jan 16, 2016 #13 DonManfred said: sweety Click to expand... Meaow Upvote 0
DonManfred Expert Licensed User Longtime User Jan 16, 2016 #14 DonManfred said: But sadly it does not work as yet... I´m investigating what´s going wrong. Hopefully i can get rid of it Click to expand... after a couple hours of testing. I got it working. BUT not able to set an icon, not able to set commandline-args, not able to set an description. So i decided to stop working on it and i did a search by myself and found this. I downloaded it did a wraper for it in about 30 minutes. And some hours more to do some documentation, tests, creating the zips... Did a small example to test. WORKS Upvote 0
DonManfred said: But sadly it does not work as yet... I´m investigating what´s going wrong. Hopefully i can get rid of it Click to expand... after a couple hours of testing. I got it working. BUT not able to set an icon, not able to set commandline-args, not able to set an description. So i decided to stop working on it and i did a search by myself and found this. I downloaded it did a wraper for it in about 30 minutes. And some hours more to do some documentation, tests, creating the zips... Did a small example to test. WORKS